From: Brian Paul Date: Fri, 27 Jul 2012 22:10:35 +0000 (-0600) Subject: st/mesa: undo a couple static asserts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f612e55e45402c14b2099238e8d41e911932fd26;p=mesa.git st/mesa: undo a couple static asserts Hmm, gcc didn't catch these mistakes, but MSVC did. --- 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; }