浏览代码

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>
tags/11.2-branchpoint
Timothy Arceri 9 年前
父节点
当前提交
6463d36394
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/glsl/ast_to_hir.cpp

+ 2
- 2
src/glsl/ast_to_hir.cpp 查看文件

@@ -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;

正在加载...
取消
保存