From: Mikko Rasa Date: Sun, 28 Feb 2021 11:25:56 +0000 (+0200) Subject: Remove things that weren't supposed to go in yet X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=30e4a343eb2ac10df026ab566d09ae9dacb2afe8 Remove things that weren't supposed to go in yet --- diff --git a/source/glsl/generate.cpp b/source/glsl/generate.cpp index ff863824..f93446b9 100644 --- a/source/glsl/generate.cpp +++ b/source/glsl/generate.cpp @@ -99,15 +99,9 @@ void ConstantSpecializer::visit(VariableDeclaration &var) { RefPtr literal = new Literal; if(var.type=="bool") - { literal->token = (i->second ? "true" : "false"); - literal->value = static_cast(i->second); - } else if(var.type=="int") - { literal->token = lexical_cast(i->second); - literal->value = i->second; - } var.init_expression = literal; } }