mesa: add const qualifier on _mesa_valid_to_render()
[mesa.git] / src / mesa / main / api_validate.c
index bddde29878aa99be86e3efba5054cb5dd5a3f82b..4694c36e8d1b3fdd17503cdad6af51c9f3b025f6 100644 (file)
@@ -324,7 +324,7 @@ check_valid_to_render(struct gl_context *ctx, const char *function)
  * Note: This may be called during display list compilation.
  */
 bool
-_mesa_is_valid_prim_mode(struct gl_context *ctx, GLenum mode)
+_mesa_is_valid_prim_mode(const struct gl_context *ctx, GLenum mode)
 {
    /* The overwhelmingly common case is (mode <= GL_TRIANGLE_FAN).  Test that
     * first and exit.  You would think that a switch-statement would be the