Add a default label to assure that paletteAddress is always initialized.

This commit is contained in:
riccardom 2009-01-09 21:00:06 +00:00
parent 3590579579
commit ac49e378d2
1 changed files with 4 additions and 3 deletions

View File

@ -592,17 +592,18 @@ static void setTexture(unsigned int format, unsigned int texpal)
switch (textureMode) switch (textureMode)
{ {
case 2: //i2
paletteAddress = texturePalette<<3;
break;
case 1: //a3i5 case 1: //a3i5
case 3: //i4 case 3: //i4
case 4: //i8 case 4: //i8
case 6: //a5i3 case 6: //a5i3
case 7: //16bpp case 7: //16bpp
case 5: //4x4 case 5: //4x4
default:
paletteAddress = texturePalette<<4; paletteAddress = texturePalette<<4;
break; break;
case 2: //i2
paletteAddress = texturePalette<<3;
break;
} }
u32 paletteSlot = paletteAddress>>14; u32 paletteSlot = paletteAddress>>14;