GL4: Gamma correction using sRGB

This commit is contained in:
atsb 2024-08-17 07:58:41 +02:00
parent 82e397ae92
commit cb2c346521

View file

@ -763,7 +763,6 @@ GL4_DrawBeam(entity_t *e)
VectorAdd(start_points[i], direction, end_points[i]);
}
//glDisable(GL_TEXTURE_2D);
glEnable(GL_BLEND);
glDepthMask(GL_FALSE);
@ -1613,6 +1612,9 @@ GL4_RenderView(refdef_t *fd)
GL4_DrawParticles();
GL4_DrawAlphaSurfaces();
// simple gamma correction
glEnable(GL_FRAMEBUFFER_SRGB);
// Note: R_Flash() is now GL4_Draw_Flash() and called from GL4_RenderFrame()