Merge git://github.com/Kangz/SPIRV-Cross
This commit is contained in:
commit
a2d2d2e6fb
@ -1106,8 +1106,8 @@ void Compiler::parse(const Instruction &instruction)
|
||||
|
||||
case OpEntryPoint:
|
||||
{
|
||||
auto itr = entry_points.emplace(ops[1], SPIREntryPoint(ops[1], static_cast<ExecutionModel>(ops[0]),
|
||||
extract_string(spirv, instruction.offset + 2)));
|
||||
auto itr = entry_points.insert(make_pair(ops[1], SPIREntryPoint(ops[1], static_cast<ExecutionModel>(ops[0]),
|
||||
extract_string(spirv, instruction.offset + 2))));
|
||||
auto &e = itr.first->second;
|
||||
|
||||
// Strings need nul-terminator and consume the whole word.
|
||||
|
@ -5354,7 +5354,7 @@ string CompilerGLSL::emit_continue_block(uint32_t continue_block)
|
||||
for (auto &s : statements)
|
||||
{
|
||||
if (!s.empty() && s.back() == ';')
|
||||
s.pop_back();
|
||||
s.erase(s.size() - 1, 1);
|
||||
}
|
||||
|
||||
current_continue_block = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user