mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-23 19:29:44 +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