diff options
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r-- | src/mesa/main/shaderapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c index 2cc5fe5d8f8..584af9b8cef 100644 --- a/src/mesa/main/shaderapi.c +++ b/src/mesa/main/shaderapi.c @@ -474,7 +474,7 @@ detach_shader(struct gl_context *ctx, GLuint program, GLuint shader, shProg->Shaders = newList; shProg->NumShaders = n - 1; -#ifdef DEBUG +#ifndef NDEBUG /* sanity check - make sure the new list's entries are sensible */ for (j = 0; j < shProg->NumShaders; j++) { assert(shProg->Shaders[j]->Stage == MESA_SHADER_VERTEX || |