From b94df5a4cd1ff21d3d725abb4909f1d7a48811f9 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1232 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/gl_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Quake/gl_screen.c b/Quake/gl_screen.c index 631c9144..1c3c8065 100644 --- a/Quake/gl_screen.c +++ b/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++;