From 79431b9c9e02e9cfd73a71bd8381d6488d96e9fa Mon Sep 17 00:00:00 2001 From: ewasylishen Date: Mon, 15 Jun 2015 21:17:45 +0000 Subject: [PATCH] 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 --- quakespasm/Quake/gl_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quakespasm/Quake/gl_screen.c b/quakespasm/Quake/gl_screen.c index 631c9144..1c3c8065 100644 --- a/quakespasm/Quake/gl_screen.c +++ b/quakespasm/Quake/gl_screen.c @@ -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++;