]> git.rm.cloudns.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)
committerRudolf Polzer <divVerent@alientrap.org>
Wed, 6 Jan 2010 08:34:50 +0000 (09:34 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9789 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=10933a4bc798e0cf97cd4d2dbc93d82f6388d554

gl_rmain.c

index 6a165a5f8d7164d8e4601527471d4ad100e5a72a..0e297fa626a28840031b21e4dd72482d7aac1850 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"