shaderapi: Fix AttachShader error
authorbma <Bo.Ma@windriver.com>
Tue, 12 Feb 2013 06:42:36 +0000 (08:42 +0200)
committerChad Versace <chad.versace@linux.intel.com>
Wed, 13 Feb 2013 22:09:47 +0000 (14:09 -0800)
commitce3dfa19ab27871d7eecd5664c1674e467b736bc
tree2a66d88fdf8ba81d0cd41a1c76a22c0caa394b33
parent0898047e7b6f81dfe95ecd3b0a6d836c26fef9b3
shaderapi: Fix AttachShader error

Detect a duplicate Shader type as and error instead of silently allowing
it, restrict to ES2 API.

v2: Tapani Pälli <tapani.palli@intel.com>
    - make the check run time instead of compile time

v3: chadv
    - Quote spec on which error to generate.

Signed-off-by: bma <Bo.Ma@windriver.com>
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-and-tested-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/main/shaderapi.c