add FreeTexImageData hook to help single-copy texturing in drivers

This commit is contained in:
Keith Whitwell
2005-03-22 14:27:10 +00:00
parent 050b77a9ac
commit 3e62d3a8d8
6 changed files with 63 additions and 37 deletions

View File

@@ -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] );
}
}
}