]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't use textureGatherOffset as Catalyst GLSL doesn't appear to implement it
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Jan 2010 18:48:57 +0000 (18:48 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Jan 2010 18:48:57 +0000 (18:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9789 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 68045ed108b4a964e30b02ca7fdfaffc984eac47..1e692871de9b3b2e4a42a8795dff7d4ca565503f 100644 (file)
@@ -1163,9 +1163,9 @@ static const char *builtinshaderstring =
 "#    ifdef USESHADOWMAPPCF\n"
 "#     if defined(GL_ARB_texture_gather) || defined(GL_AMD_texture_texture4)\n"
 "#      ifdef GL_ARB_texture_gather\n"
-"#        define texval(x, y) textureGatherOffset(Texture_ShadowMap2D, center, ivec(x, y))\n"
+"#        define texval(x, y) textureGather(Texture_ShadowMap2D, center + vec(x, y)*ShadowMap_TextureScale)\n"
 "#      else\n"
-"#        define texval(x, y) texture4(Texture_ShadowMap2D, center + vec2(x,y)*ShadowMap_TextureScale)\n"
+"#        define texval(x, y) texture4(Texture_ShadowMap2D, center + vec2(x, y)*ShadowMap_TextureScale)\n"
 "#      endif\n"
 "      vec2 center = shadowmaptc.xy - 0.5, offset = fract(center);\n"
 "      center *= ShadowMap_TextureScale;\n"