]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/parser.cpp
Transform interface block contents into structs
[libs/gl.git] / source / glsl / parser.cpp
index d2261126a652d109deba3c4193713568dc317616..fd782648083bdb05a1aa700ca65d4ab8f15aa926 100644 (file)
@@ -776,7 +776,8 @@ RefPtr<InterfaceBlock> Parser::parse_interface_block()
                throw parse_error(tokenizer.get_location(), iface->interface, "an interface qualifier");
 
        iface->name = expect_identifier();
-       parse_block(iface->members, true, &Parser::parse_variable_declaration_with_layout);
+       iface->members = new Block;
+       parse_block(*iface->members, true, &Parser::parse_variable_declaration_with_layout);
        if(!check(";"))
        {
                iface->instance_name = expect_identifier();