Work around buggy C++11 standard libraries (mingw)

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-11-24 21:37:13 -04:00
parent 14aa6965b3
commit 5e5b247fc7
+5 -1
View File
@@ -27,6 +27,7 @@
// C++
#include <algorithm>
#include <limits>
#include <sstream>
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());
}