Re: [Mesa-dev] [PATCH] mesa/st: Check for a NULL _LinkedShader[i] before using it.

2011-10-10 Thread Ian Romanick
Yeah, this is correct. The pointer will be NULL if there is no shader for that stage. Reviewed-by: Ian Romanick ian.d.roman...@intel.com (Sent from my phone.) On Oct 9, 2011, at 5:13 PM, Stéphane Marchesin marc...@chromium.org wrote: The rest of the linker/glsl translation code checks

[Mesa-dev] [PATCH] mesa/st: Check for a NULL _LinkedShader[i] before using it.

2011-10-09 Thread Stéphane Marchesin
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. --- src/mesa/state_tracker/st_program.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git