mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- somehow visual studio 2015 miscompiles this so badly it triggers an out of bounds assert in STL!
This commit is contained in:
parent
2382b9a238
commit
b1468d9dcc
1 changed files with 2 additions and 2 deletions
|
@ -54,9 +54,9 @@ public:
|
|||
layout.Format("std140, binding = %d", bindingpoint);
|
||||
}
|
||||
decl.Format("layout(%s) uniform %s\n{\n", layout.GetChars(), name);
|
||||
for (const auto &field : fields)
|
||||
for (size_t i = 0; i < fields.size(); i++)
|
||||
{
|
||||
decl.AppendFormat("\t%s %s;\n", GetTypeStr(field.Type), field.Name);
|
||||
decl.AppendFormat("\t%s %s;\n", GetTypeStr(fields[i].Type), fields[i].Name);
|
||||
}
|
||||
decl += "};\n";
|
||||
|
||||
|
|
Loading…
Reference in a new issue