Fix for compiler warnings

This commit is contained in:
Attila Uygun 2023-10-24 00:39:06 +02:00
parent b8e7957d91
commit 8b47314e72
3 changed files with 4 additions and 2 deletions

View File

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

View File

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

View File

@ -7,6 +7,8 @@ class InputEvent;
class PlatformObserver {
public:
virtual ~PlatformObserver() = default;
virtual void OnWindowCreated() = 0;
virtual void OnWindowDestroyed() = 0;
virtual void OnWindowResized(int width, int height) = 0;