/** * \brief Delete texture. * * \param ctx GL context. * \param texObj texture object. * * Fires any outstanding vertices and destroy the device specific texture * object. */ static void radeonDeleteTexture( GLcontext *ctx, struct gl_texture_object *texObj ) { radeonContextPtr rmesa = RADEON_CONTEXT(ctx); radeonTexObjPtr t = (radeonTexObjPtr) texObj->DriverData; if ( t ) { if ( rmesa ) RADEON_FIREVERTICES( rmesa ); radeonDestroyTexObj( rmesa, t ); } }
static void radeonDeleteTexture( GLcontext *ctx, struct gl_texture_object *texObj ) { radeonContextPtr rmesa = RADEON_CONTEXT(ctx); radeonTexObjPtr t = (radeonTexObjPtr) texObj->DriverData; if ( RADEON_DEBUG & (DEBUG_STATE|DEBUG_TEXTURE) ) { fprintf( stderr, "%s( %p )\n", __FUNCTION__, texObj ); } if ( t ) { if ( rmesa ) { RADEON_FIREVERTICES( rmesa ); } radeonDestroyTexObj( rmesa, t ); texObj->DriverData = NULL; } }