From 30e4a343eb2ac10df026ab566d09ae9dacb2afe8 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 28 Feb 2021 13:25:56 +0200 Subject: [PATCH] Remove things that weren't supposed to go in yet --- source/glsl/generate.cpp | 6 ------ 1 file changed, 6 deletions(-) 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; } } -- 2.45.2