Skip to content

Commit c245346

Browse files
committed
fix crash on empty draws
1 parent 80c2037 commit c245346

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/imgui_impl_dx9_custom.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,9 @@ class d912pxy_renderer
388388
if (!drawPSO)
389389
return;
390390

391+
if (!draw_data->CmdListsCount || !draw_data->TotalVtxCount || !draw_data->TotalIdxCount)
392+
return;
393+
391394
WritePrimaryGeometry(draw_data);
392395
WriteAuxBuffer();
393396
SetupDraw();

0 commit comments

Comments
 (0)