mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 22:00:11 +01:00
intel: Fix improper freeing of texture data in TFP.
If there happened to be ->Data present, we assertion failed instead of handling it correctly. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=35234 Acked-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
fdd4961443
commit
d430e81c32
1 changed files with 1 additions and 4 deletions
|
|
@ -686,10 +686,7 @@ intel_set_texture_image_region(struct gl_context *ctx,
|
|||
region->width, region->height, 1,
|
||||
0, internalFormat, format);
|
||||
|
||||
if (intel_image->mt) {
|
||||
intel_miptree_release(intel, &intel_image->mt);
|
||||
assert(!image->Data);
|
||||
}
|
||||
ctx->Driver.FreeTextureImageBuffer(ctx, image);
|
||||
|
||||
intel_image->mt = intel_miptree_create_for_region(intel, target,
|
||||
image->TexFormat,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue