main: Allow ctx == NULL in _mesa_validate_shader_target().
authorPaul Berry <stereotype441@gmail.com>
Thu, 9 Jan 2014 23:30:10 +0000 (15:30 -0800)
committerPaul Berry <stereotype441@gmail.com>
Wed, 22 Jan 2014 04:24:54 +0000 (20:24 -0800)
commit020919b2ae76192f0f35c0901be0e1069a87b7f2
treef592aca2b25ba328b6f921fb7747dc6142560637
parent6ab2a6148a539a9e308ad4e017e5ed6b9658aa4f
main: Allow ctx == NULL in _mesa_validate_shader_target().

This will allow this function to be used in circumstances where there
is no context available, such as when building built-in GLSL
functions.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/shaderapi.c