mirror of
https://github.com/love2d/love.git
synced 2026-08-19 20:19:42 +02:00
Work around buggy C++11 standard libraries (mingw)
--HG-- branch : minor
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
// C++
|
// C++
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
namespace love
|
namespace love
|
||||||
{
|
{
|
||||||
@@ -312,7 +313,10 @@ void Shader::mapActiveUniforms()
|
|||||||
|
|
||||||
if (u.count > 1)
|
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());
|
location = glGetUniformLocation(program, indexname.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user