mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Work around buggy C++11 standard libraries (mingw)
--HG-- branch : minor
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user