diff options
author | SmileTheory <SmileTheory@gmail.com> | 2014-08-02 00:02:46 -0700 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-08-28 11:13:04 +0100 |
commit | 2ce57fb40b35b657929d054c4b07dff9b6b71191 (patch) | |
tree | 01c01a6ab9ee9a573db061bbfaa6b301b3b02c1b /src/renderergl2 | |
parent | c348fd4c49359c91c201ca0f66a2cd71041dca34 (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.glsl | 2 |
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; |