mirror of
https://github.com/yquake2/ref_gl4.git
synced 2024-11-13 00:34:06 +00:00
GL4: Gamma correction using sRGB
This commit is contained in:
parent
82e397ae92
commit
cb2c346521
1 changed files with 3 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue