Skip to content

Commit

Permalink
GS:MTL: Fix drawable presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
TellowKrinkle committed Mar 26, 2022
1 parent e85823e commit 39ab3e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pcsx2/Frontend/MetalHostDisplay.mm
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,11 @@ static void OnMainThread(Fn&& fn)
ImGui::Render();
dev->RenderImGui(ImGui::GetDrawData());
dev->EndRenderPass();
dev->FlushEncoders();
if (m_current_drawable)
[m_current_drawable present];
[dev->m_current_render_cmdbuf addScheduledHandler:[drawable = std::move(m_current_drawable)](id<MTLCommandBuffer>){
[drawable present];
}];
dev->FlushEncoders();
m_current_drawable = nullptr;
if (@available(macOS 10.15, iOS 13, *))
{
Expand Down

0 comments on commit 39ab3e9

Please sign in to comment.