Treat image units and coordinate units differently.
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 14 Jan 2009 18:05:40 +0000 (10:05 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 14 Jan 2009 18:09:01 +0000 (10:09 -0800)
commit2549c26a8b1eec21bdd8f45d3b3dd06e17ac82ae
tree9c7c2b2f7aadb58fcc150af85c7f429bc1796814
parenta98dccca36027fc0ed333075ab30176144e6c475
Treat image units and coordinate units differently.

Previously MaxTextureUnits was used to validate both texture image
units and texture coordinate units in fragment programs.  Instead, use
MaxTextureCoordUnits for texture coordinate units and
MaxTextureImageUnits for texture image units.

Fixes bugzilla #19468.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/shader/arbprogparse.c