gdkglcontext-win32-wgl.c: Cleanup GL context creation
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 17 Jan 2022 10:14:30 +0000 (18:14 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 19 Jan 2022 03:56:32 +0000 (11:56 +0800)
commit38c17c1f796a394d0cf559712ac7a78409c4ea8b
treeb53de82ca12d2a278e36521a963abef0e4dd0335
parentb85aa10700a3af7aa4e7c7c0cc5a9c02fb36ca35
gdkglcontext-win32-wgl.c: Cleanup GL context creation

Instead of first trying to explicitly ask for a WGL 4.1 context, ask for
the WGL context version that matches what is reported via
epoxy_gl_version(), so that we get the maximum WGL version that is
supported by the graphics drivers, and make sure any WGL contexts that
are shared with this (initial) WGL context are created likewise.

We can try to do a default-bog-standard 3.2 core WGL context creation
if the need arises, but let's leave that alone for now.
gdk/win32/gdkglcontext-win32-wgl.c