Explorar el Código

shader: Properly insert Prologue instruction

ReinUsesLisp hace 5 años
padre
commit
d3dad6b632

+ 2 - 1
src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp

@@ -635,7 +635,8 @@ public:
           block_list{block_list_} {
         Visit(root_stmt, nullptr, nullptr);
 
-        IR::IREmitter ir{*block_list.front()};
+        IR::Block& first_block{*block_list.front()};
+        IR::IREmitter ir{first_block, first_block.begin()};
         ir.Prologue();
     }