more cleanup

This commit is contained in:
Alug committed 2024-01-11 09:51:58 +01:00
1 parent d2a361c250
commit a1f7914c5e
1 file changed
+2 -8
+2 -8
View File
@@ -4321,18 +4321,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
// prepare shader, if it is enabled
//Shader_SetUniforms(NULL, NULL, NULL, NULL);
pglColor4ubv(white);
pglTexCoordPointer(2, GL_FLOAT, 0, fix);