GDK-Win32: Improve GL on Windows

Update the GDKGL implementation:

-Allow legacy contexts to be created.
-Use finer-grained attributes to ask for a pixel format when possible,
 which also adds support for anti-aliasing

In fact the changes here are required for GTKGL to work properly on
Windows for 4.x.

Note that creation of gles contexts are not done here, as the system does
not support such contexts directly on Windows, but only through means such
as ANGLE, which is a totally different issue here.

https://bugzilla.gnome.org/show_bug.cgi?id=773528
This commit is contained in:
Chun-wei Fan
2016-10-14 19:04:49 +08:00
parent 45cf4c7d57
commit b67a1c7f39
2 changed files with 298 additions and 67 deletions

View File

@ -47,6 +47,8 @@ struct _GdkWin32Display
guint hasWglARBCreateContext : 1;
guint hasWglEXTSwapControl : 1;
guint hasWglOMLSyncControl : 1;
guint hasWglARBPixelFormat : 1;
guint hasWglARBmultisample : 1;
};
struct _GdkWin32DisplayClass