mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
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:
parent
d60c11b315
commit
79431b9c9e
1 changed files with 2 additions and 1 deletions
|
@ -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++;
|
||||
|
||||
|
|
Loading…
Reference in a new issue