]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix some GLSL warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 25 Mar 2011 21:32:17 +0000 (21:32 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sat, 26 Mar 2011 18:49:58 +0000 (19:49 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10966 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=df5c7facfbf185d10f4fc0b1e0768dcecae1a242

shader_glsl.h

index 3e46a8fb03cc2bb340fd7aecc31bdf566cf3cff9..f6156301131cb2cc64d3c8f3e3369c12e0ad95f5 100644 (file)
 "\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"