From 90f47a907e85b93c1cfda652b206495773fbfe32 Mon Sep 17 00:00:00 2001 From: ewasylishen Date: Wed, 4 Feb 2015 03:57:06 +0000 Subject: [PATCH] sbar.c: don't skip redrawing the status bar if we're doing glsl gamma, since it would get gamma correction applied multiple times. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1160 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/sbar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quakespasm/Quake/sbar.c b/quakespasm/Quake/sbar.c index f3ca9e56..d2c01647 100644 --- a/quakespasm/Quake/sbar.c +++ b/quakespasm/Quake/sbar.c @@ -931,7 +931,8 @@ void Sbar_Draw (void) if (cl.intermission) return; //johnfitz -- never draw sbar during intermission - if (sb_updates >= vid.numpages && !gl_clear.value && scr_sbaralpha.value >= 1) //johnfitz -- gl_clear, scr_sbaralpha + if (sb_updates >= vid.numpages && !gl_clear.value && scr_sbaralpha.value >= 1 //johnfitz -- gl_clear, scr_sbaralpha + && !(gl_glsl_gamma_able && vid_gamma.value != 1)) //ericw -- must draw sbar every frame if doing glsl gamma return; sb_updates++;