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-03 15:34:05 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-08-03 15:34:05 +0300
commitfe8dcffd79488451f748a0c9cf33e7ca6579c028 (patch)
treefd33d4145c4c43a3479077de6ee97a94c65b3279 /source/blender/gpu/intern/gpu_shader.c
parent5d4b981bc28278d254f247b511bed041d4daf599 (diff)
GPUShader: Fix warning in release build.
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader.c')
-rw-r--r--source/blender/gpu/intern/gpu_shader.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c
index 3a6ad04b69a..67ae1414b66 100644
--- a/source/blender/gpu/intern/gpu_shader.c
+++ b/source/blender/gpu/intern/gpu_shader.c
@@ -173,7 +173,9 @@ extern char datatoc_gpu_shader_gpencil_fill_frag_glsl[];
/* cache of built-in shaders (each is created on first use) */
static GPUShader *builtin_shaders[GPU_NUM_BUILTIN_SHADERS] = { NULL };
+#ifndef NDEBUG
static uint g_shaderid = 0;
+#endif
typedef struct {
const char *vert;