From: Dave Airlie Date: Wed, 13 Jun 2018 23:52:21 +0000 (+1000) Subject: glsl: allow standalone semicolons outside main() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=babd1d526be4690204964f5e0a42f5df12f7f83b;p=mesa.git 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 Reviewed-by: Matt Turner Cc: --- 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: