]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/parser.cpp
Refactor creation of builtin GLSL types
[libs/gl.git] / source / glsl / parser.cpp
index e2a6e1fb6c8dc65664cecd819e527995c7fb119a..626a65424532e189aa30e6b376f5ca041425ef24 100644 (file)
@@ -61,14 +61,6 @@ void Parser::parse_source(const string &name, int index)
                for(map<string, TypeDeclaration *>::const_iterator i=builtin->types.begin(); i!=builtin->types.end(); ++i)
                        global_types.insert(i->first);
        }
-       else
-       {
-               global_types.insert("void");
-               global_types.insert("bool");
-               global_types.insert("int");
-               global_types.insert("uint");
-               global_types.insert("float");
-       }
 
        tokenizer.begin(source, name);
        allow_stage_change = true;