summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-11-02 19:15:55 -0700
committerKenneth Graunke <[email protected]>2010-11-03 13:39:42 -0700
commite751ce39bfbc5be35005cedcd3d98cf820f68cde (patch)
tree3a82976fd6101ef410aa41b17e8b378bc2578f2a /src/glsl
parent0fd665ca63ba37b9a3022f21a8d9f363530e2038 (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/glsl')
-rw-r--r--src/glsl/ir_reader.cpp6
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;