move PixelFormat outside of RageDisplay because so many classes outside of RageDisplay use it.
Log PixelFormat strings instead of numbers for easier to read logs.
This commit is contained in:
@@ -27,9 +27,9 @@ MovieTexture_Null::MovieTexture_Null(RageTextureID ID) : RageMovieTexture(ID)
|
||||
|
||||
CreateFrameRects();
|
||||
|
||||
RageDisplay::PixelFormat pixfmt = RageDisplay::FMT_RGBA4;
|
||||
PixelFormat pixfmt = PixelFormat_RGBA4;
|
||||
if( !DISPLAY->SupportsTextureFormat(pixfmt) )
|
||||
pixfmt = RageDisplay::FMT_RGBA8;
|
||||
pixfmt = PixelFormat_RGBA8;
|
||||
ASSERT( DISPLAY->SupportsTextureFormat(pixfmt) );
|
||||
|
||||
const RageDisplay::PixelFormatDesc *pfd = DISPLAY->GetPixelFormatDesc( pixfmt );
|
||||
|
||||
Reference in New Issue
Block a user