glsl: fix record type detection in explicit location assign
authorTapani Pälli <tapani.palli@intel.com>
Tue, 20 Oct 2015 09:18:51 +0000 (12:18 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 21 Oct 2015 03:12:15 +0000 (06:12 +0300)
commita59c1adcc665b70ca5a8fbfebe3f0d6e05ad2778
tree645acea715239121a679829bbb6114823ca06e5f
parent1f48ea1193e3659c3f94b5de31d9200c1d500e72
glsl: fix record type detection in explicit location assign

Check current_var directly instead of using the passed in record_type.

This fixes following failing CTS test:
ES31-CTS.explicit_uniform_location.uniform-loc-types-structs

No Piglit regressions.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Marta Lofstedt <marta.lofstedt@intel.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/glsl/link_uniforms.cpp