From cd78ab55d0afefa501929366205443e15ed85495 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 21 Apr 2017 10:28:58 +0200 Subject: glsl: make use of glsl_type::is_interface() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Pitoiset Reviewed-by: Samuel Iglesias Gonsálvez Reviewed-by: Edward O'Callaghan --- src/compiler/glsl/hir_field_selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/glsl/hir_field_selection.cpp') diff --git a/src/compiler/glsl/hir_field_selection.cpp b/src/compiler/glsl/hir_field_selection.cpp index eab08ad8235..aa1808afa15 100644 --- a/src/compiler/glsl/hir_field_selection.cpp +++ b/src/compiler/glsl/hir_field_selection.cpp @@ -47,7 +47,7 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr, if (op->type->is_error()) { /* silently propagate the error */ } else if (op->type->base_type == GLSL_TYPE_STRUCT - || op->type->base_type == GLSL_TYPE_INTERFACE) { + || op->type->is_interface()) { result = new(ctx) ir_dereference_record(op, expr->primary_expression.identifier); -- cgit v1.2.3