call _mesa_delete_texture_object() from in the driver's DeleteTexture function

This commit is contained in:
Brian Paul
2004-01-11 16:27:53 +00:00
parent add9f2168a
commit 8bc3ce92a2
8 changed files with 17 additions and 0 deletions
+2
View File
@@ -366,6 +366,8 @@ static void gammaDeleteTexture( GLcontext *ctx, struct gl_texture_object *tObj )
gammaDestroyTexObj( gmesa, t );
tObj->DriverData = 0;
}
/* Free mipmap images and the texture object itself */
_mesa_delete_texture_object(ctx, tObj);
}
static GLboolean gammaIsTextureResident( GLcontext *ctx,
+2
View File
@@ -426,6 +426,8 @@ static void i810DeleteTexture( GLcontext *ctx, struct gl_texture_object *tObj )
I810_FIREVERTICES( imesa );
driDestroyTextureObject( t );
}
/* Free mipmap images and the texture object itself */
_mesa_delete_texture_object(ctx, tObj);
}
static const struct gl_texture_format *
+2
View File
@@ -438,6 +438,8 @@ static void i830DeleteTexture( GLcontext *ctx, struct gl_texture_object *tObj )
driDestroyTextureObject( t );
}
/* Free mipmap images and the texture object itself */
_mesa_delete_texture_object(ctx, tObj);
}
+2
View File
@@ -578,6 +578,8 @@ static void r128DDDeleteTexture( GLcontext *ctx,
driDestroyTextureObject( t );
}
/* Free mipmap images and the texture object itself */
_mesa_delete_texture_object(ctx, tObj);
}
void r128DDInitTextureFuncs( GLcontext *ctx )
+2
View File
@@ -955,6 +955,8 @@ static void r200DeleteTexture( GLcontext *ctx,
driDestroyTextureObject( t );
}
/* Free mipmap images and the texture object itself */
_mesa_delete_texture_object(ctx, texObj);
}
/* Need:
+3
View File
@@ -693,6 +693,9 @@ static void radeonDeleteTexture( GLcontext *ctx,
driDestroyTextureObject( t );
}
/* Free mipmap images and the texture object itself */
_mesa_delete_texture_object(ctx, texObj);
}
/* Need:
+2
View File
@@ -203,6 +203,8 @@ sisDDDeleteTexture( GLcontext * ctx, struct gl_texture_object *texObj )
FREE(t);
texObj->DriverData = NULL;
/* Free mipmap images and the texture object itself */
_mesa_delete_texture_object(ctx, texObj);
}
static GLboolean sisDDIsTextureResident( GLcontext * ctx,
+2
View File
@@ -449,6 +449,8 @@ tdfxDDDeleteTexture(GLcontext * ctx, struct gl_texture_object *tObj)
tdfxContextPtr fxMesa = TDFX_CONTEXT(ctx);
tdfxTMFreeTexture(fxMesa, tObj);
fxMesa->new_state |= TDFX_NEW_TEXTURE;
/* Free mipmap images and the texture object itself */
_mesa_delete_texture_object(ctx, tObj);
}
}