mesa: Refactor validation of shader targets
commita138a59966af2ff19bae324dbb26265abd85d2bc
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 11 Oct 2010 22:21:17 +0000 (11 15:21 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 14 Dec 2010 19:55:54 +0000 (14 11:55 -0800)
tree9c7f02d772cf754faa3b1692843c14760afc14b3
parent6fc544dd5028abf21d66f16dc562948a590adf19
mesa: Refactor validation of shader targets

Actually validate that the implementation supports the particular
shader target as well.  Previously if a driver only supported vertex
shaders, for example, glCreateShaderObjectARB would gladly create a
fragment shader.

NOTE: this is a candidate for the 7.9 branch.
(cherry picked from commit 5cb24c4a75cd0b45bb332721c3d0e5a1f928b6f4)
src/mesa/main/shaderapi.c