X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fglsl%2Fparser.cpp;h=7b034a4c671f1d854a06cfabcaad83d94859aa88;hp=31f9fcb65cc7ffe4da48cacd8cc41e0c7787dba5;hb=911c6c4acc8218bc40d93917207f9dc32e9f2596;hpb=ff3b43b6c15c3331d156b147b559892ee7ccdacb diff --git a/source/glsl/parser.cpp b/source/glsl/parser.cpp index 31f9fcb6..7b034a4c 100644 --- a/source/glsl/parser.cpp +++ b/source/glsl/parser.cpp @@ -551,10 +551,10 @@ RefPtr Parser::parse_binary(const RefPtr &left, co binary->left = left; binary->oper = &oper; tokenizer.expect(oper.token); - if(oper.token[0]=='[') + if(oper.token2[0]) { binary->right = parse_expression(); - tokenizer.expect("]"); + tokenizer.expect(oper.token2); } else binary->right = parse_expression(&oper);