mesa: Refactor validation of shader targets
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 11 Oct 2010 22:21:17 +0000 (15:21 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 13 Oct 2010 22:35:18 +0000 (15:35 -0700)
commit5cb24c4a75cd0b45bb332721c3d0e5a1f928b6f4
tree707a362844154f254be46beea9e757dfb8dc8a4f
parentbabe20b9d188ed94a5ecab30d829dd3f4ad728b5
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.
src/mesa/main/shaderapi.c