From cb692f59b46ef84506158747dec4893d5a718a02 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Mon, 1 Apr 2019 09:57:33 +0100 Subject: [PATCH] Remove unnecessary conditional check --- GL/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GL/state.c b/GL/state.c index 253b528..5f7186e 100644 --- a/GL/state.c +++ b/GL/state.c @@ -225,7 +225,7 @@ void _glUpdatePVRTextureContext(pvr_poly_cxt_t* context, GLshort textureUnit) { if(tx1->isPaletted) { if(_glIsSharedTexturePaletteEnabled()) { 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 { context->txr.format |= PVR_TXRFMT_8BPP_PAL((tx1->palette) ? tx1->palette->bank : 0); }