mesa: Array uniform name length includes length of [0]
authorIan Romanick <ian.d.romanick@intel.com>
Sat, 15 Dec 2012 03:00:32 +0000 (19:00 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 19 Jan 2013 01:35:33 +0000 (17:35 -0800)
commitf59a3a0fe2c6ae7d2e29da7b6185039ba0a03079
treec74b44b3e067fb1abbbf6196899a7981ebd68772
parent8ef3c83ffe538d09380baaac5c3cd86a9f97ca47
mesa: Array uniform name length includes length of [0]

This is required by OpenGL ES 3.0 and desktop OpenGL 4.2.  Previous
version were ambiguous.  This also matches the behavior of NVIDIA's
closed-source driver (version 304.64).

Fixed gles3conformance test uniform_buffer_object_getactiveuniformsiv
and uniform_buffer_object_structure_and_array_element_names (on my
in-progress branch that fixes a bunch of other stuff...YMMV).

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/uniform_query.cpp