glsl: empty declarations should be valid
authorChia-I Wu <olv@lunarg.com>
Wed, 3 Aug 2011 15:39:07 +0000 (00:39 +0900)
committerChia-I Wu <olv@lunarg.com>
Fri, 5 Aug 2011 03:14:24 +0000 (12:14 +0900)
commit547212d963c70161915c46d64e8020617199fb8d
treeaf49fc31fc8ec59df4099f08649cb25f0b3892f2
parenta48118e510fcbb57634a7869cb628123fa8c3f2e
glsl: empty declarations should be valid

Unlike C++, empty declarations such as

  float;

should be valid.  The spec is not explicit about this actually.

Some apps that generate their shader sources may rely on this.  This was
noted when porting one of them to Linux from Windows.

Reviewed-by: Chad Versace <chad@chad-versace.us>
Note: this is a candidate for the 7.11 branch.
src/glsl/ast_to_hir.cpp
src/glsl/glsl_parser.yy