gdkdisplay-win32.c: Don't retry WGL initialization
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 17 Sep 2021 09:08:23 +0000 (17:08 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 17 Sep 2021 09:08:23 +0000 (17:08 +0800)
commitb57e70fdafd2cf7ef92d62958c54d284935dc309
treebc7b8c5998a0657f3bfcf2ea2748c81837d7196a
parent75aa1a757b17eb8cef0d2cc23eca56d47e3ee45a
gdkdisplay-win32.c: Don't retry WGL initialization

On Windows, GLES is not that widely available unless one installs wrapper
libraries such as libANGLE, so GLES/EGL support on Windows is used more like
a fallback mode if Desktop OpenGL (WGL) support is inadequate on the system.

Hence, unless one forces WGL or EGL, we will first try to initialize WGL, and
then try to initialize GLES if enabled and if WGL initialization failed, and
then just return whatever the last result we can obtain from these
initialization attempts, since unlike X11 EGL contexts, we do not have
separate modes for WGL except for legacy and non-legacy contexts.
gdk/win32/gdkdisplay-win32.c