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:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-05-20 23:54:27 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-05-20 23:54:27 +0300
commitf5a4beffdd7aaf4669d4fc5f38ac5fb8691720fb (patch)
treecf301abb24e8198c786ed099a4d848076b917a9a /source/blender/gpu/intern
parent79d69bb9e35b0a438878fea57e8a5470e09a71c0 (diff)
Fix GLSL shader failing to compile on OSX
Bit operations are not supported on legacy profile of OSX.
Diffstat (limited to 'source/blender/gpu/intern')
-rw-r--r--source/blender/gpu/intern/gpu_shader.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c
index 49f244083f9..25352001056 100644
--- a/source/blender/gpu/intern/gpu_shader.c
+++ b/source/blender/gpu/intern/gpu_shader.c
@@ -205,6 +205,10 @@ static void gpu_shader_standard_defines(char defines[MAX_DEFINE_LENGTH],
if (GPU_bicubic_bump_support())
strcat(defines, "#define BUMP_BICUBIC\n");
+ if (GLEW_VERSION_3_0) {
+ strcat(defines, "#define BIT_OPERATIONS\n");
+ }
+
#ifdef WITH_OPENSUBDIV
/* TODO(sergey): Check whether we actually compiling shader for
* the OpenSubdiv mesh.