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 <tarceri@itsqueeze.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: <mesa-stable@lists.freedesktop.org>
(cherry picked from commit babd1d526b)
This commit is contained in:
Dave Airlie 2018-06-14 09:52:21 +10:00 committed by Dylan Baker
parent 49f43bdcbf
commit 156d0230a5

View file

@ -2676,6 +2676,7 @@ external_declaration:
| declaration { $$ = $1; }
| pragma_statement { $$ = NULL; }
| layout_defaults { $$ = $1; }
| ';' { $$ = NULL; }
;
function_definition: