diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-26 14:27:23 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-03-26 14:27:23 -0700 |
commit | a43817a483a8c4a480ef4e6dfda2cef899300eb0 (patch) | |
tree | 9c4211b2cd2bbbc94e75f8720322b4ec20da20e8 /hir_field_selection.cpp | |
parent | affc1413ac9f1f077a4ba1a1b7135f73d7a71167 (diff) |
Use glsl_type::is_error instead of comparison with glsl_error_type pointer
Diffstat (limited to 'hir_field_selection.cpp')
-rw-r--r-- | hir_field_selection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hir_field_selection.cpp b/hir_field_selection.cpp index 76c4868361..17c3f5c5ba 100644 --- a/hir_field_selection.cpp +++ b/hir_field_selection.cpp @@ -45,7 +45,7 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr, * being applied. */ YYLTYPE loc = expr->get_location(); - if (op->type == glsl_error_type) { + if (op->type->is_error()) { /* silently propagate the error */ } else if (op->type->is_vector()) { ir_swizzle *swiz = ir_swizzle::create(op, |