add FreeTexImageData hook to help single-copy texturing in drivers
This commit is contained in:
@@ -144,7 +144,7 @@ _mesa_delete_texture_object( GLcontext *ctx, struct gl_texture_object *texObj )
|
||||
for (face = 0; face < 6; face++) {
|
||||
for (i = 0; i < MAX_TEXTURE_LEVELS; i++) {
|
||||
if (texObj->Image[face][i]) {
|
||||
_mesa_delete_texture_image( texObj->Image[face][i] );
|
||||
_mesa_delete_texture_image( ctx, texObj->Image[face][i] );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user