diff --git a/src/engine/imgui_backend.cc b/src/engine/imgui_backend.cc index a0a394b..969694c 100644 --- a/src/engine/imgui_backend.cc +++ b/src/engine/imgui_backend.cc @@ -131,7 +131,7 @@ void ImguiBackend::NewFrame(float delta_time) { void ImguiBackend::Render() { ImGui::Render(); ImDrawData* draw_data = ImGui::GetDrawData(); - if (geometries_.size() < draw_data->CmdListsCount) + if ((int)geometries_.size() < draw_data->CmdListsCount) geometries_.resize(draw_data->CmdListsCount, 0); for (int n = 0; n < draw_data->CmdListsCount; n++) { const ImDrawList* cmd_list = draw_data->CmdLists[n];