glsl2: Disallow function declarations within function definitions in GLSL 1.20
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 1 Sep 2010 13:34:58 +0000 (06:34 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 1 Sep 2010 14:08:34 +0000 (07:08 -0700)
commit63b80f8cc181ded154668e60ac2cf0a6a82d118f
tree291b818f4ec95f5f8cb59387a1dd03735fdddfb1
parentc3c25a7ab8507c9c6b21137de03b5d94c2420369
glsl2: Disallow function declarations within function definitions in GLSL 1.20

The GLSL 1.20 spec specifically disallows this, but it was allowed in
GLSL 1.10.

Fixes piglit test cases local-function-0[13].frag and bugzilla #29921.
src/glsl/ast_to_hir.cpp