diff options
author | Dave Airlie <[email protected]> | 2018-06-14 09:52:21 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-06-14 10:21:51 +1000 |
commit | babd1d526be4690204964f5e0a42f5df12f7f83b (patch) | |
tree | 60f6f29d1094c4f877278f201762662c2d72b79b /src | |
parent | 51e23d34190076159129dd7b449b95a1ac3d4949 (diff) |
glsl: allow standalone semicolons outside main()
GLSL 4.60 offically added this but games and older CTS suites actually
had shaders that did this, we may as well enable it everywhere.
Adding stable because it appears apps in the wild do this.
Acked-by: Timothy Arceri <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Cc: <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/glsl/glsl_parser.yy | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/glsl_parser.yy b/src/compiler/glsl/glsl_parser.yy index 91c10ce1a60..cb7376995d2 100644 --- a/src/compiler/glsl/glsl_parser.yy +++ b/src/compiler/glsl/glsl_parser.yy @@ -2706,6 +2706,7 @@ external_declaration: | declaration { $$ = $1; } | pragma_statement { $$ = NULL; } | layout_defaults { $$ = $1; } + | ';' { $$ = NULL; } ; function_definition: |