summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl b/indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl
index e0c65291b7..82f32da048 100644
--- a/indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl
+++ b/indra/newview/app_settings/shaders/class1/interface/gaussianF.glsl
@@ -43,9 +43,9 @@ void main()
float w[9] = float[9]( 0.0002, 0.0060, 0.0606, 0.2417, 0.3829, 0.2417, 0.0606, 0.0060, 0.0002 );
- for (float i = 0.0; i < 9.0; i += 1.0)
+ for (int i = 0; i < 9; ++i)
{
- vec2 tc = vary_texcoord0 + (i-4.0)*direction*resScale;
+ vec2 tc = vary_texcoord0 + float(i-4)*direction*resScale;
col += texture(diffuseRect, tc).rgb * w[i];
}