From d5e0be9342d032ce1180e6b77df22e698e688fbe Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Wed, 31 Mar 2021 10:09:58 +0200 Subject: compiler/glsl: fix volatile string The reason the member has a leading underscore is because volatile is a keyword in C. We don't want to carry that detail into the error-string, so let's drop the underscore. Reviewed-by: Matt Turner Reviewed-by: Ian Romanick Part-of: --- src/compiler/glsl/ast_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/ast_type.cpp b/src/compiler/glsl/ast_type.cpp index 4e09cc041ad..6d301139798 100644 --- a/src/compiler/glsl/ast_type.cpp +++ b/src/compiler/glsl/ast_type.cpp @@ -876,7 +876,7 @@ ast_type_qualifier::validate_flags(YYLTYPE *loc, bad.flags.q.early_fragment_tests ? " early_fragment_tests" : "", bad.flags.q.explicit_image_format ? " image_format" : "", bad.flags.q.coherent ? " coherent" : "", - bad.flags.q._volatile ? " _volatile" : "", + bad.flags.q._volatile ? " volatile" : "", bad.flags.q.restrict_flag ? " restrict_flag" : "", bad.flags.q.read_only ? " read_only" : "", bad.flags.q.write_only ? " write_only" : "", -- cgit v1.2.3