linker: Assign attrib location 0 if gl_Vertex is not used
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 13 Aug 2010 19:30:41 +0000 (12:30 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 13 Aug 2010 21:50:48 +0000 (14:50 -0700)
commitc33e78f62bed762d8e5987e111a6e0424dc26c76
treec681cabe4b222f4d0c485e5f4e2aa6c484bd77c9
parent204d4cbea0de81f6f162ae0348e476de6c916ca8
linker: Assign attrib location 0 if gl_Vertex is not used

If gl_Vertex is not used in the shader, then attribute location 0 is
available for use.

Fixes piglit test case glsl-getattriblocation (bugzilla #29540).
src/glsl/linker.cpp