Fixed bug 5471 - Creating a fullscreen desktop window goes windowed temporarily

This is caused by the Metal renderer recreating the window because by default we create an OpenGL window on macOS.

It turns out that at least on macOS 10.15, a window that has been initialized for OpenGL can also be used with Metal. So we'll skip recreating the window in that case.
1 file changed