Reviewed-by: Marek Olšák <[email protected]>

Marek

On Tue, May 2, 2017 at 9:21 PM, Brian Paul <[email protected]> wrote:
> ---
>  src/mesa/main/api_validate.c | 2 +-
>  src/mesa/main/api_validate.h | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
> index bddde29..4694c36 100644
> --- a/src/mesa/main/api_validate.c
> +++ b/src/mesa/main/api_validate.c
> @@ -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
> diff --git a/src/mesa/main/api_validate.h b/src/mesa/main/api_validate.h
> index 93ec93d..88c51bf 100644
> --- a/src/mesa/main/api_validate.h
> +++ b/src/mesa/main/api_validate.h
> @@ -39,7 +39,7 @@ extern GLboolean
>  _mesa_valid_to_render(struct gl_context *ctx, const char *where);
>
>  extern bool
> -_mesa_is_valid_prim_mode(struct gl_context *ctx, GLenum mode);
> +_mesa_is_valid_prim_mode(const struct gl_context *ctx, GLenum mode);
>
>  extern GLboolean
>  _mesa_valid_prim_mode(struct gl_context *ctx, GLenum mode, const char *name);
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to