From 1c633575770a4e778e17189f416cea52477bc9ea Mon Sep 17 00:00:00 2001 From: Polona Caserman Date: Mon, 23 Jan 2017 09:19:26 +0100 Subject: [PATCH] Remove old code --- spirv_msl.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/spirv_msl.cpp b/spirv_msl.cpp index e1a0d8b1..4ed4da40 100644 --- a/spirv_msl.cpp +++ b/spirv_msl.cpp @@ -1051,9 +1051,6 @@ void CompilerMSL::emit_fixup() { if (options.vertex.fixup_clipspace) { - /*const char *suffix = backend.float_literal_suffix ? "f" : ""; - statement(qual_pos_var_name, ".z = 2.0", suffix, " * ", qual_pos_var_name, ".z - ", qual_pos_var_name, - ".w;", " // Adjust clip-space for Metal");*/ statement(qual_pos_var_name, ".z = (", qual_pos_var_name, ".z + ", qual_pos_var_name, ".w) * 0.5; // Adjust clip-space for Metal"); }