glsl2: check for _NumLinkedShaders being 0
authorTörök Edvin <edwintorok@gmail.com>
Sat, 4 Sep 2010 10:48:24 +0000 (13:48 +0300)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 7 Sep 2010 19:27:07 +0000 (12:27 -0700)
commitc47b289972a6c5ca0e30ff5618418e5ca91bd1ec
treea3ae5456ffd3a84758b9cd9d6805bde7d5648ad9
parent3ea3f5e0a542cfd9f9a3433515fd27e0a5d1b1ac
glsl2: check for _NumLinkedShaders being 0

Otherwise spring 0.82+.4.0 crashes when starting a game
because prog->_LinkedShaders[0] is NULL.

This also fixes piglit test cases glsl-link-empty-prog-0[12].
src/glsl/linker.cpp