From: havoc Date: Fri, 25 Mar 2011 21:32:17 +0000 (+0000) Subject: fix some GLSL warnings X-Git-Tag: xonotic-v0.6.0~163^2~580 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=df5c7facfbf185d10f4fc0b1e0768dcecae1a242;p=xonotic%2Fdarkplaces.git fix some GLSL warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10966 d7cf8633-e32d-0410-b094-e92efae38249 --- 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"