diff --git a/src/window/gui/Gui.cpp b/src/window/gui/Gui.cpp index 04e777c..0635795 100644 --- a/src/window/gui/Gui.cpp +++ b/src/window/gui/Gui.cpp @@ -233,6 +233,16 @@ void Gui::LoadTextureFromRawImage(const std::string& name, const std::string& pa } bool Gui::SupportsViewports() { +#ifdef __linux__ + if (std::string(std::getenv("XDG_CURRENT_DESKTOP")) == "gamescope") { + return false; + } +#endif + +#if defined(__ANDROID__) || defined(__IOS__) + return false; +#endif + switch (Context::GetInstance()->GetWindow()->GetWindowBackend()) { case WindowBackend::DX11: return true;