mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
mesa: add const qualifier on _mesa_valid_to_render()
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
f57e234fdd
commit
a30313abf6
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue