refine multi viewport support (#604)

This commit is contained in:
briaguya
2024-05-27 11:40:42 -04:00
committed by GitHub
parent 0c9472eb5a
commit 88dc063127
+10
View File
@@ -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;