summaryrefslogtreecommitdiff
path: root/src/renderergl2
diff options
context:
space:
mode:
authorSmileTheory <SmileTheory@gmail.com>2014-08-02 00:02:46 -0700
committerTim Angus <tim@ngus.net>2014-08-28 11:13:04 +0100
commit2ce57fb40b35b657929d054c4b07dff9b6b71191 (patch)
tree01c01a6ab9ee9a573db061bbfaa6b301b3b02c1b /src/renderergl2
parentc348fd4c49359c91c201ca0f66a2cd71041dca34 (diff)
OpenGL2: Fix a glsl compile error on old hardware with r_shadowFilter 0.
Diffstat (limited to 'src/renderergl2')
-rw-r--r--src/renderergl2/glsl/shadowmask_fp.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderergl2/glsl/shadowmask_fp.glsl b/src/renderergl2/glsl/shadowmask_fp.glsl
index 8a5597a9..053907cf 100644
--- a/src/renderergl2/glsl/shadowmask_fp.glsl
+++ b/src/renderergl2/glsl/shadowmask_fp.glsl
@@ -82,7 +82,7 @@ float PCF(const sampler2DShadow shadowmap, const vec2 st, const float dist)
mult *= 0.33333;
#endif
#else
- mult = shadow2D(shadowmap, vec3(st, dist));
+ mult = shadow2D(shadowmap, vec3(st, dist)).r;
#endif
return mult;