From f612e55e45402c14b2099238e8d41e911932fd26 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 27 Jul 2012 16:10:35 -0600 Subject: [PATCH] st/mesa: undo a couple static asserts Hmm, gcc didn't catch these mistakes, but MSVC did. --- src/mesa/state_tracker/st_atom_depth.c | 4 ++-- 1 file 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; } -- 2.30.2