call _mesa_delete_texture_object() from in the driver's DeleteTexture function
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 *
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user