diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp index 3a5c0a1b6a8..05c79faf668 100644 --- a/src/compiler/glsl/ast_to_hir.cpp +++ b/src/compiler/glsl/ast_to_hir.cpp @@ -1703,6 +1703,7 @@ ast_expression::do_hir(exec_list *instructions, if ((op[0]->type == glsl_type::error_type || op[1]->type == glsl_type::error_type)) { error_emitted = true; + result = ir_rvalue::error_value(ctx); break; }