GPUShader: Fix previous "old Nvidia" fix commit

Note to myself, next time, better check the fix before pushing it.

GL_ARB_texture_gather is defined if there is support for the extension
not only when the extension is enabled. Do this check ourself with
GPU_ARB_texture_gather define.

Original fix 822de6e9e1
This commit is contained in:
2018-08-13 23:09:48 +02:00
parent 53ed270523
commit 04067a54c0
3 changed files with 5 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ void main()
{
ivec2 texel = ivec2(gl_FragCoord.xy);
#ifdef GL_ARB_texture_gather
#ifdef GPU_ARB_texture_gather
vec2 texel_size = 1.0 / vec2(textureSize(outlineId, 0).xy);
vec2 uv = ceil(gl_FragCoord.xy) * texel_size;