Skip to content

Commit c7ee605

Browse files
committed
refine multi viewport support
1 parent 0da318c commit c7ee605

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/window/gui/Gui.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,16 @@ void Gui::LoadTextureFromRawImage(const std::string& name, const std::string& pa
233233
}
234234

235235
bool Gui::SupportsViewports() {
236+
#ifdef __linux__
237+
if (std::string(std::getenv("XDG_CURRENT_DESKTOP")) == "gamescope") {
238+
return false;
239+
}
240+
#endif
241+
242+
#if defined(__ANDROID__) || defined(__IOS__)
243+
return false;
244+
#endif
245+
236246
switch (Context::GetInstance()->GetWindow()->GetWindowBackend()) {
237247
case WindowBackend::DX11:
238248
return true;

0 commit comments

Comments
 (0)