OSDN Git Service

intel: Remove extra FreeTextureImageBuffer() from glTexImage*.
authorEric Anholt <eric@anholt.net>
Wed, 21 Sep 2011 16:02:40 +0000 (09:02 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Sep 2011 18:03:10 +0000 (11:03 -0700)
The core code does this before calling in to us.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/intel/intel_tex_image.c

index fd719e4..16a0a24 100644 (file)
@@ -414,7 +414,6 @@ intelTexImage(struct gl_context * ctx,
       }
    }
 
-   ctx->Driver.FreeTextureImageBuffer(ctx, texImage);
    assert(!intelImage->mt);
 
    if (intelObj->mt &&