From: Gareth H. <ga...@va...> - 2001-03-21 16:16:11
|
Gareth Hughes wrote: > > Yes, but I think we'll get the best information if the message is > outside the FALLBACK macro, hence the DEBUG_VERBOSE_FALLBACK bit. We > may have several texturing fallbacks, but describing which one caused > the fallback can only really be done like: > > if ( tObj->Image[tObj->BaseLevel]->Border > 0 ) { > FALLBACK( rmesa, RADEON_FALLBACK_TEXTURE, GL_TRUE ); > if ( RADEON_DEBUG & DEBUG_VERBOSE_FALLBACK ) > fprintf( stderr, "FALLBACK: texture border\n" ); > return; > } > > I don't see any other way, unless we have bits for every single fallback > case... Unless we change FALLBACK to be like this: if ( tObj->Image[tObj->BaseLevel]->Border > 0 ) { FALLBACK( rmesa, RADEON_FALLBACK_TEXTURE, GL_TRUE, "texture border" ); return; } -- Gareth |