From d7fadc933f48ffef31919194a0fefa091432eae5 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 18 Oct 2020 09:55:55 +0400 Subject: [PATCH] Fix override warning with MyGUI 3.4 --- components/myguiplatform/myguirendermanager.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/myguiplatform/myguirendermanager.hpp b/components/myguiplatform/myguirendermanager.hpp index 1e82bc0df..72abebd18 100644 --- a/components/myguiplatform/myguirendermanager.hpp +++ b/components/myguiplatform/myguirendermanager.hpp @@ -106,10 +106,16 @@ public: bool checkTexture(MyGUI::ITexture* _texture); + // setViewSize() is a part of MyGUI::RenderManager interface since 3.4.0 release +#if MYGUI_VERSION < MYGUI_DEFINE_VERSION(3,4,0) + void setViewSize(int width, int height); +#else + void setViewSize(int width, int height) override; +#endif + /*internal:*/ void collectDrawCalls(); - void setViewSize(int width, int height); }; }