simplify
This commit is contained in:
@@ -594,8 +594,7 @@ PixelFormat RageDisplay::FindPixelFormat(
|
|||||||
{
|
{
|
||||||
PixelFormatDesc tmp = { bpp, Rmask, Gmask, Bmask, Amask };
|
PixelFormatDesc tmp = { bpp, Rmask, Gmask, Bmask, Amask };
|
||||||
|
|
||||||
int pixfmt;
|
for(int pixfmt = 0; pixfmt < NUM_PIX_FORMATS; ++pixfmt)
|
||||||
for(pixfmt = 0; pixfmt < NUM_PIX_FORMATS; ++pixfmt)
|
|
||||||
{
|
{
|
||||||
const PixelFormatDesc *pf = GetPixelFormatDesc(PixelFormat(pixfmt));
|
const PixelFormatDesc *pf = GetPixelFormatDesc(PixelFormat(pixfmt));
|
||||||
if(!SupportsTextureFormat( PixelFormat(pixfmt) ))
|
if(!SupportsTextureFormat( PixelFormat(pixfmt) ))
|
||||||
|
|||||||
Reference in New Issue
Block a user