summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaderapi.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-10 11:09:02 -0700
committerBrian Paul <[email protected]>2012-01-10 12:37:37 -0700
commit6bf5daf331f13ec9503615a2578247e72b7d2cbb (patch)
tree330ebba53381d9f2bd4c226d1675bf0fafc95758 /src/mesa/main/shaderapi.c
parentf9b2d2fea586f772551abbb675970b71b2fdf8c9 (diff)
mesa: use STATIC_ASSERT in a few more places
Diffstat (limited to 'src/mesa/main/shaderapi.c')
-rw-r--r--src/mesa/main/shaderapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 52a9bd45254..9372d6decf6 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -923,7 +923,7 @@ validate_samplers(const struct gl_program *prog, char *errMsg)
GLbitfield samplersUsed = prog->SamplersUsed;
GLuint i;
- assert(Elements(targetName) == NUM_TEXTURE_TARGETS);
+ STATIC_ASSERT(Elements(targetName) == NUM_TEXTURE_TARGETS);
if (samplersUsed == 0x0)
return GL_TRUE;