glsl: better handling of linker failures
authorBrian Paul <brianp@vmware.com>
Wed, 24 Nov 2010 00:18:44 +0000 (17:18 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 24 Nov 2010 00:18:48 +0000 (17:18 -0700)
commit6162773ea4b0e84c3ab9c9952fb5e838519c2564
tree81603c1b4d08061ccdaa1f767c1f2a5b1a7c5464
parent2900e56f9dda864f2c5b75d3db4dcc452dc91373
glsl: better handling of linker failures

Upon link error, exit translation loop, free program instructions.
Check for null pointers in calling code.
src/mesa/program/ir_to_mesa.cpp