From df5c7facfbf185d10f4fc0b1e0768dcecae1a242 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 25 Mar 2011 21:32:17 +0000 Subject: [PATCH] fix some GLSL warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10966 d7cf8633-e32d-0410-b094-e92efae38249 --- shader_glsl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shader_glsl.h b/shader_glsl.h index 673c6a99..b9f5abf5 100644 --- a/shader_glsl.h +++ b/shader_glsl.h @@ -703,7 +703,7 @@ "\n" "# ifdef USESHADOWSAMPLER\n" "# ifdef USESHADOWMAPPCF\n" -"# define texval(x, y) dp_shadow2D(Texture_ShadowMap2D, vec3(center + vec2(x, y)*ShadowMap_TextureScale, shadowmaptc.z)).r \n" +"# define texval(x, y) float(dp_shadow2D(Texture_ShadowMap2D, vec3(center + vec2(x, y)*ShadowMap_TextureScale, shadowmaptc.z))) \n" " vec2 center = shadowmaptc.xy*ShadowMap_TextureScale;\n" " f = dot(vec4(0.25), vec4(texval(-0.4, 1.0), texval(-1.0, -0.4), texval(0.4, -1.0), texval(1.0, 0.4)));\n" "# else\n" -- 2.39.2