Compare commits

...

2 Commits

Author SHA1 Message Date
HARFANG 3D (admin) 201f27a902
Merge pull request #42 from pmp-p/wasm-egl-no-window
EGL/WebGL in the context of a web browser has no window.
2023-02-02 09:25:45 +01:00
pmp-p 931e5d4896 EGL has no window 2023-02-01 18:44:45 +01:00
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