From babd1d526be4690204964f5e0a42f5df12f7f83b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 14 Jun 2018 09:52:21 +1000 Subject: [PATCH] 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: --- src/compiler/glsl/glsl_parser.yy | 1 + 1 file changed, 1 insertion(+) 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: -- 2.30.2