If a format isn't supported, don't "fake it" with an unrelated format; that

just "lies" to the user code, probably resulting in extra format conversions.
Just don't claim support for it, and a different, more appropriate format will
be used.  (This didn't actually matter, since RageDisplay_D3D::SupportsTextureFormat
returns false for everything but FMT_RGBA8.)
This commit is contained in:
Glenn Maynard
2004-09-05 02:02:10 +00:00
parent eda61958f7
commit 8ebdc06ea8
+2 -11
View File
@@ -153,21 +153,12 @@ static const RageDisplay::PixelFormatDesc PIXEL_FORMAT_DESC[RageDisplay::NUM_PIX
0x001F,
0x0000 },
}, {
#if defined _XBOX
/* A8B8G8R8 */
32,
{ 0x00FF0000,
0x0000FF00,
0x000000FF,
0xFF000000 }
#else
/* B8G8R8 */
24,
{ 0xFF0000,
0x00FF00,
0x0000FF,
0x000000 }
#endif
}, {
/* Paletted */
8,
@@ -187,8 +178,8 @@ static D3DFORMAT D3DFORMATS[RageDisplay::NUM_PIX_FORMATS] =
D3DFMT_A4R4G4B4,
D3DFMT_A1R5G5B5,
D3DFMT_X1R5G5B5,
#if defined _XBOX
D3DFMT_A8R8G8B8,
#if defined(XBOX)
D3DFMT_UNKNOWN, /* no RGB */
#else
D3DFMT_R8G8B8,
#endif