mesa/st: Check for a NULL _LinkedShader[i] before using it.
authorStéphane Marchesin <marcheu@chromium.org>
Sun, 9 Oct 2011 23:49:19 +0000 (16:49 -0700)
committerStéphane Marchesin <marcheu@chromium.org>
Mon, 10 Oct 2011 07:15:05 +0000 (00:15 -0700)
commitddba509c16c4cb0630a4f4841b31953f02be6b3f
treebffacb3a2788ea84bafaccbf65a2d366dad11b2f
parent0f55f133f1e5b72e463441d2d388a1ec4deac1da
mesa/st: Check for a NULL _LinkedShader[i] before using it.

The rest of the linker/glsl translation code checks for NULL, so I suppose we should check here too. Fixes crash on exit with i915g instanced drawing.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/state_tracker/st_program.c