summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/state_tracker/st_atom_depth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_atom_depth.c b/src/mesa/state_tracker/st_atom_depth.c
index 373e1584b85..c76a6d8c606 100644
--- a/src/mesa/state_tracker/st_atom_depth.c
+++ b/src/mesa/state_tracker/st_atom_depth.c
@@ -57,8 +57,8 @@ st_compare_func_to_pipe(GLenum func)
STATIC_ASSERT(PIPE_FUNC_NOTEQUAL == GL_NOTEQUAL - GL_NEVER);
STATIC_ASSERT(PIPE_FUNC_GEQUAL == GL_GEQUAL - GL_NEVER);
STATIC_ASSERT(PIPE_FUNC_ALWAYS == GL_ALWAYS - GL_NEVER);
- STATIC_ASSERT(func >= GL_NEVER);
- STATIC_ASSERT(func <= GL_ALWAYS);
+ assert(func >= GL_NEVER);
+ assert(func <= GL_ALWAYS);
return func - GL_NEVER;
}