diff options
author | Brian Paul <[email protected]> | 2014-02-12 13:22:27 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-02-12 13:37:09 -0700 |
commit | 248606a5f065b88ee6328c233e54f163088de5d5 (patch) | |
tree | 8272721b2b5492ebae58aff2b7f6423db26b8462 /src/glsl/ast_function.cpp | |
parent | fd0620ff6c2c629e4888f4c98cfd6655adbfb69e (diff) |
glsl: rename _restrict to restrict_flag
To fix MSVC compile breakage. Evidently, _restrict is an MSVC keyword,
though the docs only mention __restrict (with two underscores).
Note: we may want to also rename _volatile to volatile_flag to be
consistent.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74900
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ast_function.cpp')
-rw-r--r-- | src/glsl/ast_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 8fa03dc2d4c..4b84470679e 100644 --- a/src/glsl/ast_function.cpp +++ b/src/glsl/ast_function.cpp @@ -120,7 +120,7 @@ verify_image_parameter(YYLTYPE *loc, _mesa_glsl_parse_state *state, return false; } - if (actual->data.image._restrict && !formal->data.image._restrict) { + if (actual->data.image.restrict_flag && !formal->data.image.restrict_flag) { _mesa_glsl_error(loc, state, "function call parameter `%s' drops " "`restrict' qualifier", formal->name); |