aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-11-05 19:34:40 +0100
committersfan5 <sfan5@live.de>2020-11-05 19:34:40 +0100
commit627c22c36e32185d48d2faf8197e22cbaa4c50b2 (patch)
treee6ec5008c7fd97bc5b406daba7da30c0464863c0
parent3356da01513860d899cde503408436f7e1918f63 (diff)
downloadminetest-627c22c36e32185d48d2faf8197e22cbaa4c50b2.tar.gz
minetest-627c22c36e32185d48d2faf8197e22cbaa4c50b2.tar.bz2
minetest-627c22c36e32185d48d2faf8197e22cbaa4c50b2.zip
Fix integer-string conversion for shaders
closes #10605
-rw-r--r--src/client/shader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/shader.cpp b/src/client/shader.cpp
index f2aa00246..4f6430579 100644
--- a/src/client/shader.cpp
+++ b/src/client/shader.cpp
@@ -734,7 +734,7 @@ ShaderInfo generate_shader(const std::string &name, u8 material_type, u8 drawtyp
shaders_header += "#define ";
shaders_header += drawTypes[i];
shaders_header += " ";
- shaders_header += std::to_string(i);
+ shaders_header += itos(i);
shaders_header += "\n";
}
@@ -757,15 +757,15 @@ ShaderInfo generate_shader(const std::string &name, u8 material_type, u8 drawtyp
shaders_header += "#define ";
shaders_header += materialTypes[i];
shaders_header += " ";
- shaders_header += std::to_string(i);
+ shaders_header += itos(i);
shaders_header += "\n";
}
shaders_header += "#define MATERIAL_TYPE ";
- shaders_header += std::to_string(material_type);
+ shaders_header += itos(material_type);
shaders_header += "\n";
shaders_header += "#define DRAW_TYPE ";
- shaders_header += std::to_string(drawtype);
+ shaders_header += itos(drawtype);
shaders_header += "\n";
if (g_settings->getBool("enable_waving_water")){