Fix -opengl parameter crash

This commit is contained in:
spherallic 2024-09-12 19:18:40 +02:00 committed by Lactozilla
parent 1b66373a4a
commit 702c7bd63d

View file

@ -5605,7 +5605,7 @@ void HWR_RenderPlayerView(INT32 viewnumber, player_t *player)
// Can't have palette rendering if shaders are disabled.
boolean HWR_ShouldUsePaletteRendering(void)
{
return (cv_glpaletterendering.value && HWR_UseShader());
return (pMasterPalette != NULL && cv_glpaletterendering.value && HWR_UseShader());
}
// enable or disable palette rendering state depending on settings and availability