From: Kenneth Graunke Date: Fri, 30 Aug 2013 08:07:37 +0000 (-0700) Subject: glsl: Mark _mesa_glsl_parse_state::is_version() as const. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d403a105735f2b56e24092b1c25e2d3d108e15bc;p=mesa.git glsl: Mark _mesa_glsl_parse_state::is_version() as const. This promises the method won't modify the contents of the object. This allows us to call it even with a const pointer to the state. Signed-off-by: Kenneth Graunke Reviewed-by: Matt Turner Reviewed-by: Paul Berry --- diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h index 440c15bb801..c4443ac485e 100644 --- a/src/glsl/glsl_parser_extras.h +++ b/src/glsl/glsl_parser_extras.h @@ -113,7 +113,7 @@ struct _mesa_glsl_parse_state { * feature. */ bool is_version(unsigned required_glsl_version, - unsigned required_glsl_es_version) + unsigned required_glsl_es_version) const { unsigned required_version = this->es_shader ? required_glsl_es_version : required_glsl_version;