mirror of https://github.com/auygun/kaliber.git
Fix for compiler warnings
This commit is contained in:
parent
b8e7957d91
commit
8b47314e72
|
@ -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();
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue