diff options
author | Eric Anholt <[email protected]> | 2011-09-28 12:27:56 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-10-03 13:29:37 -0700 |
commit | 9aff2944a449f586e32f537350e590910d09d016 (patch) | |
tree | ac0638e35ea06a1f9dd9d4649fefffe939b59990 /src/mesa/drivers/dri/intel/intel_tex.c | |
parent | 18198e299b52e0301e7264969fdb0351f7f29147 (diff) |
intel: Make PBO TexImage use AllocTextureImageBuffer like non-PBO does.
Now that whole block that also lives in AllocTextureImageBuffer can go
away.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_tex.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c index ba1e364b9e9..2b4047f054c 100644 --- a/src/mesa/drivers/dri/intel/intel_tex.c +++ b/src/mesa/drivers/dri/intel/intel_tex.c @@ -60,6 +60,12 @@ intel_alloc_texture_image_buffer(struct gl_context *ctx, struct gl_texture_object *texobj = image->TexObject; struct intel_texture_object *intel_texobj = intel_texture_object(texobj); + /* Because the driver uses AllocTextureImageBuffer() internally, it may end + * up mismatched with FreeTextureImageBuffer(), but that is safe to call + * multiple times. + */ + ctx->Driver.FreeTextureImageBuffer(ctx, image); + if (intel->must_use_separate_stencil && image->TexFormat == MESA_FORMAT_S8_Z24) { intel_tex_image_s8z24_create_renderbuffers(intel, intel_image); |