Remove unnecessary conditional check
This commit is contained in:
parent
d912680ef0
commit
cb692f59b4
|
@ -225,7 +225,7 @@ void _glUpdatePVRTextureContext(pvr_poly_cxt_t* context, GLshort textureUnit) {
|
||||||
if(tx1->isPaletted) {
|
if(tx1->isPaletted) {
|
||||||
if(_glIsSharedTexturePaletteEnabled()) {
|
if(_glIsSharedTexturePaletteEnabled()) {
|
||||||
TexturePalette* palette = _glGetSharedPalette(tx1->shared_bank);
|
TexturePalette* palette = _glGetSharedPalette(tx1->shared_bank);
|
||||||
context->txr.format |= PVR_TXRFMT_8BPP_PAL((palette) ? 0 : palette->bank);
|
context->txr.format |= PVR_TXRFMT_8BPP_PAL(palette->bank);
|
||||||
} else {
|
} else {
|
||||||
context->txr.format |= PVR_TXRFMT_8BPP_PAL((tx1->palette) ? tx1->palette->bank : 0);
|
context->txr.format |= PVR_TXRFMT_8BPP_PAL((tx1->palette) ? tx1->palette->bank : 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user