mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-12 21:20:06 +00:00
Fix #137 by avoiding a C++11 feature.
Apparently, older MSVC versions don't support brace-initializers for function arguments. Thanks @baldurk for a suggestion on his branch.
This commit is contained in:
parent
7349eab099
commit
97605c86fd
@ -1804,7 +1804,9 @@ Block& Builder::makeNewBlock()
|
||||
|
||||
Builder::LoopBlocks& Builder::makeNewLoop()
|
||||
{
|
||||
loops.push({makeNewBlock(), makeNewBlock(), makeNewBlock(), makeNewBlock()});
|
||||
// Older MSVC versions don't allow inlining of blocks below.
|
||||
LoopBlocks blocks = {makeNewBlock(), makeNewBlock(), makeNewBlock(), makeNewBlock()};
|
||||
loops.push(blocks);
|
||||
return loops.top();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user