From e757ccec55b54356d3b0047fe6b337242b881114 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 11 Aug 2025 17:02:01 -0500 Subject: [PATCH] a little patch for Windows before 1.92 --- extern/imgui_patched/backends/imgui_impl_dx9.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/extern/imgui_patched/backends/imgui_impl_dx9.cpp b/extern/imgui_patched/backends/imgui_impl_dx9.cpp index 05b3c3cdf..537dcc3c6 100644 --- a/extern/imgui_patched/backends/imgui_impl_dx9.cpp +++ b/extern/imgui_patched/backends/imgui_impl_dx9.cpp @@ -211,13 +211,11 @@ void ImGui_ImplDX9_RenderDrawData(ImDrawData* draw_data) unsigned short* idx_dst; if (bd->pVB->Lock(0, (UINT)(draw_data->TotalVtxCount * sizeof(CUSTOMVERTEX)), (void**)&vtx_dst, D3DLOCK_DISCARD) < 0) { - state_block->Release(); return; } if (bd->pIB->Lock(0, (UINT)(draw_data->TotalIdxCount * sizeof(unsigned short)), (void**)&idx_dst, D3DLOCK_DISCARD) < 0) { bd->pVB->Unlock(); - state_block->Release(); return; }