Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-08-14 00:09:48 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-08-14 00:09:48 +0300
commit04067a54c04472cff2e35a077d77630522e94e7f (patch)
tree317a627f760ec6b6c81c6aa276bc37c180420af2 /source/blender/draw/modes/shaders/object_outline_detect_frag.glsl
parent53ed27052327ee8295380409ac6473f9114d44b1 (diff)
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 822de6e9e1b8
Diffstat (limited to 'source/blender/draw/modes/shaders/object_outline_detect_frag.glsl')
-rw-r--r--source/blender/draw/modes/shaders/object_outline_detect_frag.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/shaders/object_outline_detect_frag.glsl b/source/blender/draw/modes/shaders/object_outline_detect_frag.glsl
index 9a7856ecb13..dbf7f411a20 100644
--- a/source/blender/draw/modes/shaders/object_outline_detect_frag.glsl
+++ b/source/blender/draw/modes/shaders/object_outline_detect_frag.glsl
@@ -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;