diff options
author | Kenneth Graunke <[email protected]> | 2010-11-02 19:15:55 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-11-03 13:39:42 -0700 |
commit | e751ce39bfbc5be35005cedcd3d98cf820f68cde (patch) | |
tree | 3a82976fd6101ef410aa41b17e8b378bc2578f2a /src | |
parent | 0fd665ca63ba37b9a3022f21a8d9f363530e2038 (diff) |
ir_reader: Remove useless error check.
It's already been determined that length == 3, so clearly swiz->next is
a valid S-Expression.
Diffstat (limited to 'src')
-rw-r--r-- | src/glsl/ir_reader.cpp | 6 |
1 files changed, 0 insertions, 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 <rvalue>)", - swiz->value()); - return NULL; - } - ir_rvalue *rvalue = read_rvalue(st, sub); if (rvalue == NULL) return NULL; |