mirror of
https://github.com/izzy2lost/libultraship.git
synced 2026-06-19 01:16:13 -07:00
refine multi viewport support (#604)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user