glsl: Fix condition to generate shader link error
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 19 Dec 2013 22:17:19 +0000 (14:17 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 18 Feb 2014 19:07:09 +0000 (11:07 -0800)
commit03597cf802a7a89c4853794e6206ab8ab003898d
tree21b530f02b5356bfab11c9c356b8831dd8dd2e7e
parent6bd2472a8b9a969d06dc110bd30ccd8daf713959
glsl: Fix condition to generate shader link error

GL_ARB_ES2_compatibility doesn't say anything about shader linking
when one of the shaders (vertex or fragment shader) is absent. So,
the extension shouldn't change the behavior specified in GLSL
specification.

Tested the behavior on proprietary linux drivers of NVIDIA and AMD.
Both of them allow linking a version 100 shader program in OpenGL
context, when one of the shaders is absent.

Makes following Khronos CTS tests to pass:
successfulcompilevert_linkprogram.test
successfulcompilefrag_linkprogram.test

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/linker.cpp