From 5e5b247fc73e4a9150c9b213abd097595ab62735 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Thu, 24 Nov 2016 21:37:13 -0400 Subject: [PATCH] Work around buggy C++11 standard libraries (mingw) --HG-- branch : minor --- src/modules/graphics/opengl/Shader.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/graphics/opengl/Shader.cpp b/src/modules/graphics/opengl/Shader.cpp index 6ad34bcea..df6e848a5 100644 --- a/src/modules/graphics/opengl/Shader.cpp +++ b/src/modules/graphics/opengl/Shader.cpp @@ -27,6 +27,7 @@ // C++ #include #include +#include namespace love { @@ -312,7 +313,10 @@ void Shader::mapActiveUniforms() if (u.count > 1) { - std::string indexname = u.name + "[" + std::to_string(i) + "]"; + std::ostringstream ss; + ss << i; + + std::string indexname = u.name + "[" + ss.str() + "]"; location = glGetUniformLocation(program, indexname.c_str()); }