Fix for compiler warning

This commit is contained in:
Attila Uygun 2023-11-02 21:24:53 +01:00
parent 0d64c98854
commit 61a96c7988
1 changed files with 1 additions and 1 deletions

View File

@ -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];