Skip to content

Commit

Permalink
Backends: DX9: calling IDirect3DStateBlock9::Capture() after CreateSt…
Browse files Browse the repository at this point in the history
…ateBlock() which appears to workaround/fix state restoring issues. (merge)
  • Loading branch information
Kuanlan authored and Kuanlan committed Mar 19, 2021
1 parent 536d9e6 commit 7229327
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions backends/imgui_impl_dx9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,6 @@ void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data)
// Upload vertex & index data
if (!ImGui_ImplDX9_CreateBuffers(draw_data))
return;
if (d3d9_state_block->Capture() < 0)
{
d3d9_state_block->Release();
return;
}

// Setup desired DX state
ImGui_ImplDX9_BackupState();
Expand Down

0 comments on commit 7229327

Please sign in to comment.