From 8ebdc06ea82d703941fe645338b9deb723e5405c Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 5 Sep 2004 02:02:10 +0000 Subject: [PATCH] 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.) --- stepmania/src/RageDisplay_D3D.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index 2f5841a6e1..ca2b9beee3 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -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