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/gpu/intern/gpu_shader.c
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/gpu/intern/gpu_shader.c')
-rw-r--r--source/blender/gpu/intern/gpu_shader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c
index b812cf61483..427a3fd233e 100644
--- a/source/blender/gpu/intern/gpu_shader.c
+++ b/source/blender/gpu/intern/gpu_shader.c
@@ -226,6 +226,7 @@ static void gpu_shader_standard_extensions(char defines[MAX_EXT_DEFINE_LENGTH])
* is reported to be supported but yield a compile error (see T55802). */
if (!GPU_type_matches(GPU_DEVICE_NVIDIA, GPU_OS_ANY, GPU_DRIVER_ANY) || GLEW_VERSION_4_0) {
strcat(defines, "#extension GL_ARB_texture_gather: enable\n");
+ strcat(defines, "#define GPU_ARB_texture_gather\n");
}
}
if (GLEW_ARB_texture_query_lod) {