mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-12 00:14:20 +00:00
Fixed assert introduced in dafad3903e if there are no active draw list
This commit is contained in:
parent
b4f1e88860
commit
fcbbb0070e
1 changed files with 1 additions and 1 deletions
|
|
@ -2380,7 +2380,7 @@ void ImGui::Render()
|
|||
|
||||
// Setup draw data
|
||||
g.RenderDrawData.Valid = true;
|
||||
g.RenderDrawData.CmdLists = &g.RenderDrawLists[0][0];
|
||||
g.RenderDrawData.CmdLists = (g.RenderDrawLists[0].Size > 0) ? &g.RenderDrawLists[0][0] : NULL;
|
||||
g.RenderDrawData.CmdListsCount = g.RenderDrawLists[0].Size;
|
||||
g.RenderDrawData.TotalVtxCount = g.IO.MetricsRenderVertices;
|
||||
g.RenderDrawData.TotalIdxCount = g.IO.MetricsRenderIndices;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue