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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user