Skip to content

Commit

Permalink
GL4: Gamma correction using sRGB
Browse files Browse the repository at this point in the history
  • Loading branch information
atsb authored and 0lvin committed Aug 17, 2024
1 parent 8b9a4ab commit 9ad9cb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/refresh/gl4/gl4_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9ad9cb8

Please sign in to comment.