]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
re-enable saturation on sidebyside and stereobuffer (it's harmless there), only keep...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 27 Aug 2009 12:19:28 +0000 (12:19 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 27 Aug 2009 12:19:28 +0000 (12:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9149 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c
cl_screen.h
gl_rmain.c

index 631ace7f6eac5ede7f24e6f0f7cb341d0b1d3687..c3c10953112926cb4b8763d8774198a64bcef5d4 100644 (file)
@@ -1947,9 +1947,14 @@ void SCR_UpdateLoadingScreen (qboolean clear)
        key_consoleactive = old_key_consoleactive;
 }
 
+qboolean R_Stereo_ColorMasking(void)
+{
+       return r_stereo_redblue.integer || r_stereo_redgreen.integer || r_stereo_redcyan.integer;
+}
+
 qboolean R_Stereo_Active(void)
 {
-       return (vid.stereobuffer || r_stereo_redblue.integer || r_stereo_redgreen.integer || r_stereo_redcyan.integer || r_stereo_sidebyside.integer);
+       return (vid.stereobuffer || r_stereo_sidebyside.integer || R_Stereo_ColorMasking());
 }
 
 extern cvar_t cl_minfps;
index df92c5a5cbb31ed4a8f8f20a14e5b4935854b97f..cc6bda0a06dc375d8517a934ea2c5c30bbd20364 100644 (file)
@@ -20,6 +20,7 @@ void CL_Screen_Shutdown(void);
 void CL_UpdateScreen(void);
 
 qboolean R_Stereo_Active(void);
+qboolean R_Stereo_ColorMasking(void);
 
 #endif
 
index e95215473e85ed6da36dc7b7c2c60244526907ac..e9cdf7a62e8083438e4facefd21100117027d34f 100644 (file)
@@ -3356,7 +3356,7 @@ void R_Bloom_StartFrame(void)
                Cvar_SetValueQuick(&r_damageblur, 0);
        }
 
-       if (!(r_glsl.integer && (r_glsl_postprocess.integer || (!R_Stereo_Active() && r_glsl_saturation.value != 1) || (v_glslgamma.integer && !vid_gammatables_trivial))) && !r_bloom.integer && !r_hdr.integer && (R_Stereo_Active() || (r_motionblur.value <= 0 && r_damageblur.value <= 0)))
+       if (!(r_glsl.integer && (r_glsl_postprocess.integer || (!R_Stereo_ColorMasking() && r_glsl_saturation.value != 1) || (v_glslgamma.integer && !vid_gammatables_trivial))) && !r_bloom.integer && !r_hdr.integer && (R_Stereo_Active() || (r_motionblur.value <= 0 && r_damageblur.value <= 0)))
                screentexturewidth = screentextureheight = 0;
        if (!r_hdr.integer && !r_bloom.integer)
                bloomtexturewidth = bloomtextureheight = 0;
@@ -3679,7 +3679,7 @@ static void R_BlendView(void)
                        | (r_refdef.viewblend[3] > 0 ? SHADERPERMUTATION_VERTEXTEXTUREBLEND : 0)
                        | ((v_glslgamma.value && !vid_gammatables_trivial) ? SHADERPERMUTATION_GAMMARAMPS : 0)
                        | (r_glsl_postprocess.integer ? SHADERPERMUTATION_POSTPROCESSING : 0)
-                       | ((!R_Stereo_Active() && r_glsl_saturation.value != 1) ? SHADERPERMUTATION_SATURATION : 0);
+                       | ((!R_Stereo_ColorMasking() && r_glsl_saturation.value != 1) ? SHADERPERMUTATION_SATURATION : 0);
 
                if (r_bloomstate.texture_bloom && !r_bloomstate.hdr)
                {