Browse Source

Fix dx9 overlay graphics bug with black mesa.

merge-requests/37/head
Mr_Goldberg 3 months ago
parent
commit
ccc48d83a8
No known key found for this signature in database GPG Key ID: 8597D87419DEF278
  1. 1
      ImGui/impls/windows/imgui_impl_dx9.cpp

1
ImGui/impls/windows/imgui_impl_dx9.cpp

@ -130,6 +130,7 @@ void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data)
if (g_pd3dDevice->CreateStateBlock(D3DSBT_ALL, &d3d9_state_block) < 0)
return;
d3d9_state_block->Capture();
// Backup the DX9 transform (DX9 documentation suggests that it is included in the StateBlock but it doesn't appear to)
D3DMATRIX last_world, last_view, last_projection;
g_pd3dDevice->GetTransform(D3DTS_WORLD, &last_world);

Loading…
Cancel
Save