From: eihrul Date: Tue, 5 Jan 2010 18:54:24 +0000 (+0000) Subject: textureGatherOffset fix - take #2 X-Git-Tag: xonotic-v0.1.0preview~230^2~676 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cdd2052ed9c261d72eeb456f64e6a99edaa87314;p=xonotic%2Fdarkplaces.git textureGatherOffset fix - take #2 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9790 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 1e692871..e66f0173 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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"