mesa: Fix bogus transform feedback error message when subscripting non-array.
authorPaul Berry <stereotype441@gmail.com>
Wed, 4 Jan 2012 23:17:52 +0000 (15:17 -0800)
committerPaul Berry <stereotype441@gmail.com>
Mon, 9 Jan 2012 18:30:35 +0000 (10:30 -0800)
commit108cba21dec82a7e10962cf01f2835e7b950ff74
tree7a8b35dbe90a540a7f7ae18b85d7758af3f9496b
parentb87b857d90008d045175a6673cabbf9e448d21bc
mesa: Fix bogus transform feedback error message when subscripting non-array.

Previous to this patch, if the client requested transform feedback
using a subscript, but the variable was not an array
(e.g. "gl_FrontColor[0]"), we would produce a bogus error message like
"Transform feedback varying gl_FrontColor[0] found, but it's an array
([] expected)".

Changed the error message to e.g. "Transfrorm feedback varying
gl_FrontColor[0] requested, but gl_FrontColor is not an array."

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/linker.cpp