mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
remove bogus assertion in DeleteTexture() function
This commit is contained in:
parent
8135a445f3
commit
727d345b41
6 changed files with 0 additions and 7 deletions
|
|
@ -419,7 +419,6 @@ static void i810BindTexture( GLcontext *ctx, GLenum target,
|
|||
static void i810DeleteTexture( GLcontext *ctx, struct gl_texture_object *tObj )
|
||||
{
|
||||
driTextureObject * t = (driTextureObject *) tObj->DriverData;
|
||||
assert(t);
|
||||
if (t) {
|
||||
i810ContextPtr imesa = I810_CONTEXT( ctx );
|
||||
if (imesa)
|
||||
|
|
|
|||
|
|
@ -428,7 +428,6 @@ static void i830BindTexture( GLcontext *ctx, GLenum target,
|
|||
static void i830DeleteTexture( GLcontext *ctx, struct gl_texture_object *tObj )
|
||||
{
|
||||
driTextureObject * t = (driTextureObject *) tObj->DriverData;
|
||||
assert(t);
|
||||
if ( t != NULL ) {
|
||||
i830ContextPtr imesa = I830_CONTEXT( ctx );
|
||||
|
||||
|
|
|
|||
|
|
@ -495,7 +495,6 @@ mgaDeleteTexture( GLcontext *ctx, struct gl_texture_object *tObj )
|
|||
mgaContextPtr mmesa = MGA_CONTEXT( ctx );
|
||||
driTextureObject * t = (driTextureObject *) tObj->DriverData;
|
||||
|
||||
assert(t);
|
||||
if ( t ) {
|
||||
if ( mmesa ) {
|
||||
FLUSH_BATCH( mmesa );
|
||||
|
|
|
|||
|
|
@ -572,7 +572,6 @@ static void r128DeleteTexture( GLcontext *ctx,
|
|||
r128ContextPtr rmesa = R128_CONTEXT(ctx);
|
||||
driTextureObject * t = (driTextureObject *) tObj->DriverData;
|
||||
|
||||
assert(t);
|
||||
if ( t ) {
|
||||
if ( t->bound && rmesa ) {
|
||||
FLUSH_BATCH( rmesa );
|
||||
|
|
|
|||
|
|
@ -959,8 +959,6 @@ static void r200DeleteTexture( GLcontext *ctx,
|
|||
r200ContextPtr rmesa = R200_CONTEXT(ctx);
|
||||
driTextureObject * t = (driTextureObject *) texObj->DriverData;
|
||||
|
||||
assert(t);
|
||||
|
||||
if ( R200_DEBUG & (DEBUG_STATE|DEBUG_TEXTURE) ) {
|
||||
fprintf( stderr, "%s( %p (target = %s) )\n", __FUNCTION__, (void *)texObj,
|
||||
_mesa_lookup_enum_by_nr( texObj->Target ) );
|
||||
|
|
|
|||
|
|
@ -691,7 +691,6 @@ static void radeonDeleteTexture( GLcontext *ctx,
|
|||
_mesa_lookup_enum_by_nr( texObj->Target ) );
|
||||
}
|
||||
|
||||
assert(t);
|
||||
if ( t != NULL ) {
|
||||
if ( rmesa ) {
|
||||
RADEON_FIREVERTICES( rmesa );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue