[Mesa-dev] [PATCH v2 3/5] glsl: Add const safety to _mesa_glsl_parse_state::is_version()

Paul Berry stereotype441 at gmail.com
Fri Jul 12 18:25:16 PDT 2013


Needed for the patch that follows.
---
 src/glsl/glsl_parser_extras.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/glsl_parser_extras.h b/src/glsl/glsl_parser_extras.h
index 7f478df..ad8b063 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;
-- 
1.8.3.2



More information about the mesa-dev mailing list