]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
textureGatherOffset fix - take #2
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 5 Jan 2010 18:54:24 +0000 (18:54 +0000)
committerRudolf Polzer <divVerent@alientrap.org>
Wed, 6 Jan 2010 08:34:51 +0000 (09:34 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9790 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=cdd2052ed9c261d72eeb456f64e6a99edaa87314

gl_rmain.c

index 0e297fa626a28840031b21e4dd72482d7aac1850..b1ca1f146a8036d3a77cb4f0071a7098416d8b97 100644 (file)
@@ -1163,7 +1163,7 @@ 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) textureGather(Texture_ShadowMap2D, center + vec(x, y)*ShadowMap_TextureScale)\n"
+"#        define texval(x, y) textureGatherOffset(Texture_ShadowMap2D, center, ivec2(x, y))\n"
 "#      else\n"
 "#        define texval(x, y) texture4(Texture_ShadowMap2D, center + vec2(x, y)*ShadowMap_TextureScale)\n"
 "#      endif\n"