GL4: Gamma correction using sRGB

cb2c346521
This commit is contained in:
atsb 2024-08-17 07:58:41 +02:00 committed by Denis Pauk
parent 8b9a4ab8e4
commit 9ad9cb8682

View file

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