Fix for compile warnings

This commit is contained in:
Attila Uygun 2023-10-24 00:32:23 +02:00
parent 010c6b097c
commit 2eb571b1ff
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class Engine : public PlatformObserver {
using CreateImageCB = std::function<std::unique_ptr<Image>()>; using CreateImageCB = std::function<std::unique_ptr<Image>()>;
Engine(Platform* platform); Engine(Platform* platform);
~Engine(); virtual ~Engine();
static Engine& Get(); static Engine& Get();

View File

@ -106,7 +106,7 @@ void ImguiBackend::Render() {
ImGui::Render(); ImGui::Render();
ImDrawData* draw_data = ImGui::GetDrawData(); ImDrawData* draw_data = ImGui::GetDrawData();
if (draw_data->CmdListsCount < -0) if (draw_data->CmdListsCount <= 0)
return; return;
float L = draw_data->DisplayPos.x; float L = draw_data->DisplayPos.x;