Return OpenGL window on macOS and Linux.

This commit is contained in:
John Preston 2021-06-23 19:47:57 +04:00
parent 0134685622
commit 98ba824bde

View file

@ -27,7 +27,7 @@ constexpr auto kUseNativeChild = ::Platform::IsWindows();
} // namespace
Window::Window()
: _window(std::make_unique<Ui::Window>())
: _window(createWindow())
, _bodyNativeWrap(createNativeBodyWrap())
, _body(_bodyNativeWrap ? _bodyNativeWrap.get() : _window->body().get()) {
}