mesa: check that uniform exists in glUniform* functions
authorTapani Pälli <tapani.palli@intel.com>
Fri, 12 Sep 2014 07:36:08 +0000 (10:36 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 15 Sep 2014 04:33:12 +0000 (07:33 +0300)
commit9bd139e4515172d98e91d6ed7364ec3ea5cf623d
tree1b627a699d051f13cbdd4f17947cc22bb38fc024
parentce50a61d3659582d18957b4c953904ad92c417ec
mesa: check that uniform exists in glUniform* functions

Remap table for uniforms may contain empty entries when using explicit
uniform locations. If no active/inactive variable exists with given
location, remap table contains NULL.

v2: move remap table bounds check before existence check (Ian Romanick)

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Tested-by: Erik Faye-Lund <kusmabite@gmail.com> (v1)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83574
src/mesa/main/uniform_query.cpp