Bläddra i källkod

intel: Use _mesa_get_current_tex_object() to clean up TFP path.

tags/mesa_7_7_rc1
Eric Anholt 16 år sedan
förälder
incheckning
ee7dfbbd6c
1 ändrade filer med 4 tillägg och 4 borttagningar
  1. 4
    4
      src/mesa/drivers/dri/intel/intel_tex_image.c

+ 4
- 4
src/mesa/drivers/dri/intel/intel_tex_image.c Visa fil

@@ -115,7 +115,8 @@ guess_and_alloc_mipmap_tree(struct intel_context *intel,
*/
if ((intelObj->base.MinFilter == GL_NEAREST ||
intelObj->base.MinFilter == GL_LINEAR) &&
intelImage->level == firstLevel) {
intelImage->level == firstLevel &&
(intel->gen < 4 || firstLevel == 0)) {
lastLevel = firstLevel;
}
else {
@@ -733,17 +734,16 @@ intelSetTexBuffer2(__DRIcontext *pDRICtx, GLint target,
{
struct intel_framebuffer *intel_fb = dPriv->driverPrivate;
struct intel_context *intel = pDRICtx->driverPrivate;
GLcontext *ctx = &intel->ctx;
struct intel_texture_object *intelObj;
struct intel_texture_image *intelImage;
struct intel_mipmap_tree *mt;
struct intel_renderbuffer *rb;
struct gl_texture_unit *texUnit;
struct gl_texture_object *texObj;
struct gl_texture_image *texImage;
int level = 0, internalFormat;

texUnit = &intel->ctx.Texture.Unit[intel->ctx.Texture.CurrentUnit];
texObj = _mesa_select_tex_object(&intel->ctx, texUnit, target);
texObj = _mesa_get_current_tex_object(ctx, target);
intelObj = intel_texture_object(texObj);

if (!intelObj)

Laddar…
Avbryt
Spara