]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/parser.cpp
Rename InterfaceBlock::name to block_name for clarity
[libs/gl.git] / source / glsl / parser.cpp
index a2e3296d81b9c52ff70139a3cf91f747aed03485..9e1f1913491cf98800352d25619557a3e120bfdc 100644 (file)
@@ -575,7 +575,6 @@ RefPtr<FunctionCall> Parser::parse_function_call(const VariableReference &var)
 {
        RefPtr<FunctionCall> call = create_node<FunctionCall>();
        call->name = var.name;
-       call->constructor = is_type(call->name);
        call->oper = &Operator::get_operator("(", Operator::POSTFIX);
        tokenizer.expect("(");
        while(tokenizer.peek_token()!=")")
@@ -793,7 +792,7 @@ RefPtr<InterfaceBlock> Parser::parse_interface_block()
        if(!is_interface_qualifier(iface->interface))
                throw parse_error(tokenizer.get_location(), iface->interface, "an interface qualifier");
 
-       iface->name = expect_identifier();
+       iface->block_name = expect_identifier();
        iface->members = new Block;
        parse_block(*iface->members, true, &Parser::parse_variable_declaration_with_layout);
        if(!check(";"))