]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove things that weren't supposed to go in yet
authorMikko Rasa <tdb@tdb.fi>
Sun, 28 Feb 2021 11:25:56 +0000 (13:25 +0200)
committerMikko Rasa <tdb@tdb.fi>
Sun, 28 Feb 2021 19:41:54 +0000 (21:41 +0200)
source/glsl/generate.cpp

index ff863824055ae76ef51cc9fdd08521b2b3548aa2..f93446b90a7d05dcbf50482a42b3aefe83710d46 100644 (file)
@@ -99,15 +99,9 @@ void ConstantSpecializer::visit(VariableDeclaration &var)
                {
                        RefPtr<Literal> literal = new Literal;
                        if(var.type=="bool")
-                       {
                                literal->token = (i->second ? "true" : "false");
-                               literal->value = static_cast<bool>(i->second);
-                       }
                        else if(var.type=="int")
-                       {
                                literal->token = lexical_cast<string>(i->second);
-                               literal->value = i->second;
-                       }
                        var.init_expression = literal;
                }
        }