gdkglcontext-win32-wgl.c: Fix Cairo fallback check
Hi,
From the commit message:
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 (closed).
Also, don't retry initializing the WGL context if that failed, since we are using the same settings throughout.
With blessings, thank you!
Edited by Chun-wei Fan