Fixed assert introduced in dafad3903e if there are no active draw list

docking
ocornut 10 years ago
parent b4f1e88860
commit fcbbb0070e

@ -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…
Cancel
Save