Remove unneeded check.

This commit is contained in:
Glenn Maynard
2003-09-03 03:44:08 +00:00
parent eb48da7570
commit 8e4dd81b8a
-8
View File
@@ -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);