EGL has no window

This commit is contained in:
pmp-p 2023-02-01 18:44:45 +01:00
parent a15f909791
commit 931e5d4896
1 changed files with 5 additions and 0 deletions

View File

@ -19,10 +19,15 @@ void DisconnectWindowSystemSignals() {
}
bool IsWindowOpen(const Window *window) {
# if defined(__EMSCRIPTEN__)
// with EGL context there's no window.
return true;
# else
for (auto &w : open_window_list)
if (w == window)
return true;
return false;
#endif // __EMSCRIPTEN__
}
} // namespace hg