gdkglcontext-win32-wgl.c: Fix Cairo fallback check
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 17 Sep 2021 03:09:23 +0000 (11:09 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 17 Sep 2021 03:19:30 +0000 (11:19 +0800)
commit75aa1a757b17eb8cef0d2cc23eca56d47e3ee45a
tree75b921babe30759d0b7344a79c7605f166529672
parent362208523d0ff83eecccacc3bd93cb7e19a7bbff
gdkglcontext-win32-wgl.c: Fix Cairo fallback check

We were setting the WGL pixel format in GdkWin32Display too early, so the code
does not bail out correctly when we retry establishing the WGL context.

Fix this by pushing back setting the WGL pixel format only after it passes the
shader availability check.

Should fix issue #4257.
gdk/win32/gdkglcontext-win32-wgl.c