diff --git a/src/hardware/r_opengl/r_opengl.c b/src/hardware/r_opengl/r_opengl.c index 9cb7e6b81..518744b0f 100644 --- a/src/hardware/r_opengl/r_opengl.c +++ b/src/hardware/r_opengl/r_opengl.c @@ -4269,21 +4269,12 @@ EXPORT void HWRAPI(DrawScreenFinalTexture)(int width, int height) clearColour.alpha = 1; ClearBuffer(true, false, false, &clearColour); if (HWR_ShouldUsePaletteRendering()) - { SetBlend(PF_NoDepthTest); - pglBindTexture(GL_TEXTURE_2D, finalScreenTexture); - } - else - pglBindTexture(GL_TEXTURE_2D, finalScreenTexture); + + pglBindTexture(GL_TEXTURE_2D, finalScreenTexture); if (HWR_ShouldUsePaletteRendering()) - { pglUseProgram(gl_shaderprograms[8].program); // palette postprocess shader - pglActiveTexture(GL_TEXTURE2); - } - - // prepare shader, if it is enabled - //Shader_SetUniforms(NULL, NULL, NULL, NULL); pglColor4ubv(white); pglTexCoordPointer(2, GL_FLOAT, 0, fix); @@ -4294,10 +4285,7 @@ EXPORT void HWRAPI(DrawScreenFinalTexture)(int width, int height) tex_downloaded = finalScreenTexture; if (HWR_ShouldUsePaletteRendering()) - { pglUseProgram(0); - pglActiveTexture(GL_TEXTURE0); - } } diff --git a/src/st_stuff.c b/src/st_stuff.c index 37b75d586..b4b4a3d49 100644 --- a/src/st_stuff.c +++ b/src/st_stuff.c @@ -2207,7 +2207,7 @@ void ST_Drawer(void) //25/08/99: Hurdler: palette changes is done for all players, // not only player1! That's why this part // of code is moved somewhere else. - if (rendermode == render_soft || HWR_PalRenderFlashpal()) + if (rendermode == render_soft || (rendermode == render_opengl && HWR_PalRenderFlashpal())) #endif if (rendermode != render_none) ST_doPaletteStuff();