Use glsl_type::is_error instead of comparison with glsl_error_type pointer

This commit is contained in:
Ian Romanick
2010-03-26 14:27:23 -07:00
parent affc1413ac
commit a43817a483
2 changed files with 10 additions and 15 deletions

View File

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