mesa: Return INVALID_OPERATION when type is known but not allowed
authorMatt Turner <mattst88@gmail.com>
Fri, 30 Nov 2012 23:07:18 +0000 (15:07 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 15 Jan 2013 21:34:00 +0000 (13:34 -0800)
commit2906e2034c9d674601960a5b586b6e986e6ef04f
tree743eeba09971edb3d6dfe4342c22bae5c082802f
parentc8901133a4525fc50fb34dfe24c549f1663468cc
mesa: Return INVALID_OPERATION when type is known but not allowed

INVALID_ENUM is for when the type is simply not known.

Fixes part of es3conform's packed_depth_stencil_error test.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/glformats.c