mesa: fix UBO queries for active uniforms
authorTapani Pälli <tapani.palli@intel.com>
Mon, 20 Apr 2015 12:41:06 +0000 (15:41 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 21 Apr 2015 11:37:09 +0000 (14:37 +0300)
commit054c7dc7eb091e631a01ade3e6a46d6cc77fc9f3
treece74442795bb52ed67a54ca21323bd354c97f2a8
parent7004632b28d8a31b16acc553a1fb31202767bd80
mesa: fix UBO queries for active uniforms

Commit 34df5eb introduced regression to GetActiveUniformBlockiv
when querying one of the following properties:

   GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS
   GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES

Implementation counted all uniforms in ubo directly while query should
check first if the uniform in question is _active_.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90109
Reviewed-By: Martin Peres <martin.peres@linux.intel.com>
src/mesa/main/shader_query.cpp