SCR_TileClear: fix for GLSL gamma causing the tiled screen border to turn white, if you use "sizedown" to show the border.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1232 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
ewasylishen 2015-06-15 21:17:45 +00:00
parent d60c11b315
commit 79431b9c9e

View file

@ -953,7 +953,8 @@ johnfitz -- modified to use glwidth/glheight instead of vid.width/vid.height
*/
void SCR_TileClear (void)
{
if (scr_tileclear_updates >= vid.numpages && !gl_clear.value)
//ericw -- added check for glsl gamma. TODO: remove this ugly optimization?
if (scr_tileclear_updates >= vid.numpages && !gl_clear.value && !(gl_glsl_gamma_able && vid_gamma.value != 1))
return;
scr_tileclear_updates++;