glsl: fix max binding validation for uniform blocks

Regression as of 64710db664

We can't use the type returned by get_interface_type() as
the interface type has arrays removed.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Timothy Arceri 2015-11-23 10:07:30 +11:00 committed by Timothy Arceri
parent ad5f6b03e7
commit 6463d36394

View file

@ -6962,8 +6962,8 @@ ast_interface_block::hir(exec_list *instructions,
delete var;
} else {
if (this->layout.flags.q.explicit_binding) {
apply_explicit_binding(state, &loc, var,
var->get_interface_type(), &this->layout);
apply_explicit_binding(state, &loc, var, var->type,
&this->layout);
}
var->data.stream = qual_stream;