remove bogus assertion in DeleteTexture() function

This commit is contained in:
Brian Paul 2004-01-26 23:57:19 +00:00
parent 8135a445f3
commit 727d345b41
6 changed files with 0 additions and 7 deletions

View file

@ -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)

View file

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

View file

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

View file

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

View file

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

View file

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