[Bf-blender-cvs] [fe8dcffd794] blender2.8: GPUShader: Fix warning in release build.

Clément Foucault noreply at git.blender.org
Fri Aug 3 14:34:15 CEST 2018


Commit: fe8dcffd79488451f748a0c9cf33e7ca6579c028
Author: Clément Foucault
Date:   Fri Aug 3 14:34:05 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBfe8dcffd79488451f748a0c9cf33e7ca6579c028

GPUShader: Fix warning in release build.

===================================================================

M	source/blender/gpu/intern/gpu_shader.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list