From 8e4dd81b8a2358218300d20e04f6df766988eb4d Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 3 Sep 2003 03:44:08 +0000 Subject: [PATCH] Remove unneeded check. --- stepmania/src/RageDisplay_D3D.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/stepmania/src/RageDisplay_D3D.cpp b/stepmania/src/RageDisplay_D3D.cpp index 496143e992..54042723a3 100644 --- a/stepmania/src/RageDisplay_D3D.cpp +++ b/stepmania/src/RageDisplay_D3D.cpp @@ -100,14 +100,6 @@ static void SetPalette( unsigned TexResource ) /* Load it. */ #ifndef _XBOX TexturePalette& pal = g_TexResourceToTexturePalette[TexResource]; - - // Cards that don't support palettes with alpha will crash unless - // all entires have full alpha. - // XXX: Since we disable FMT_PAL in SupportsTextureFormat, can we remove this? -glenn - if( ! (g_DeviceCaps.TextureCaps & D3DPTEXTURECAPS_ALPHAPALETTE) ) - for(int j=0; j<256; j++) - pal.p[j].peFlags = 255; - g_pd3dDevice->SetPaletteEntries( iPalIndex, pal.p ); #else ASSERT(0);