X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fparser.cpp;fp=source%2Fglsl%2Fparser.cpp;h=ca1f3156d1179b1bd1e9091bdf645e9184e10b67;hb=f9244b13a4ae30d134dd7410664c045c9f2c1574;hp=8c10c443002e130fa01f42b32ceb18cbe5f4d772;hpb=6cb04ca058e463b7d76eba684be89dfc9e77ab29;p=libs%2Fgl.git diff --git a/source/glsl/parser.cpp b/source/glsl/parser.cpp index 8c10c443..ca1f3156 100644 --- a/source/glsl/parser.cpp +++ b/source/glsl/parser.cpp @@ -851,7 +851,11 @@ RefPtr Parser::parse_interface_block() if(check("[")) { var->array = true; - tokenizer.expect("]"); + if(!check("]")) + { + var->array_size = parse_expression(); + tokenizer.expect("]"); + } } tokenizer.expect(";"); }