From e751ce39bfbc5be35005cedcd3d98cf820f68cde Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 2 Nov 2010 19:15:55 -0700 Subject: [PATCH] ir_reader: Remove useless error check. It's already been determined that length == 3, so clearly swiz->next is a valid S-Expression. --- src/glsl/ir_reader.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/glsl/ir_reader.cpp b/src/glsl/ir_reader.cpp index 99e25855d05..437f54c4a5f 100644 --- a/src/glsl/ir_reader.cpp +++ b/src/glsl/ir_reader.cpp @@ -799,12 +799,6 @@ read_swizzle(_mesa_glsl_parse_state *st, s_list *list) } s_expression *sub = (s_expression*) swiz->next; - if (sub == NULL) { - ir_read_error(st, list, "expected rvalue: (swizzle %s )", - swiz->value()); - return NULL; - } - ir_rvalue *rvalue = read_rvalue(st, sub); if (rvalue == NULL) return NULL; -- 2.30.2