glsl: better handling of linker failures
commitce8f4f266eff89215287aa2b89f55e099630b292
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 15 Dec 2010 22:25:42 +0000 (15 14:25 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 15 Dec 2010 22:25:42 +0000 (15 14:25 -0800)
tree3d3a03d268c7c72f588f3212bbd6657b19328610
parente0dbd44a00fa6a6c8e533c1e66a241f8dac9103e
glsl: better handling of linker failures

Upon link error, exit translation loop, free program instructions.
Check for null pointers in calling code.
(cherry picked from commit 6162773ea4b0e84c3ab9c9952fb5e838519c2564)
src/mesa/program/ir_to_mesa.cpp