فهرست منبع

shader: Properly insert Prologue instruction

ReinUsesLisp 5 سال پیش
والد
کامیت
d3dad6b632
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp

+ 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();
     }