mirror of
https://github.com/harfang3d/harfang3d.git
synced 2024-06-17 04:23:02 +00:00
Merge pull request #42 from pmp-p/wasm-egl-no-window
EGL/WebGL in the context of a web browser has no window.
This commit is contained in:
commit
201f27a902
|
@ -19,10 +19,15 @@ void DisconnectWindowSystemSignals() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsWindowOpen(const Window *window) {
|
bool IsWindowOpen(const Window *window) {
|
||||||
|
# if defined(__EMSCRIPTEN__)
|
||||||
|
// with EGL context there's no window.
|
||||||
|
return true;
|
||||||
|
# else
|
||||||
for (auto &w : open_window_list)
|
for (auto &w : open_window_list)
|
||||||
if (w == window)
|
if (w == window)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
|
#endif // __EMSCRIPTEN__
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace hg
|
} // namespace hg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user