]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix effects not coming back on if toggling them off and back on while they should...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 1 Mar 2011 15:32:06 +0000 (17:32 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Tue, 1 Mar 2011 15:32:06 +0000 (17:32 +0200)
qcsrc/client/View.qc

index 1bafa462b6d25b7f532debec877beb5db04f40a8..e94e9495878c5e06ce13018949d0aec4a13b43e6 100644 (file)
@@ -843,6 +843,8 @@ void CSQC_UpdateView(float w, float h)
                {
                        cvar_set("r_glsl_postprocess_uservec1", "0 0 0 0");
                        cvar_set("r_glsl_postprocess_uservec1_enable", "0");
+                       old_blurradius = 0;
+                       old_bluralpha = 0;
                }
 
                float sharpen_intensity;
@@ -866,6 +868,7 @@ void CSQC_UpdateView(float w, float h)
                {
                        cvar_set("r_glsl_postprocess_uservec2", "0 0 0 0");
                        cvar_set("r_glsl_postprocess_uservec2_enable", "0");
+                       old_sharpen_intensity = 0;
                }
        }