Files
gtk/gdk
Chun-wei Fan d38a148f0e gdk/win32: Fix Win32 GL Context switching
Since on Windows we need to use a good amount of temporary GL contexts,
we need to switch back to the original GL contexts we were using when
we are done with the temporary GL contexts, otherwise multi-GL windows
will cause confusions causing display artifacts and crashes.

Also, use the GdkWin32GLContext::gl_hdc consistently throughout
the code and remove the GdkWin32Display::gl_hdc as Lukas K pointed out
that GdkWin32Display::gl_hdc becomes out-of-date and so the HDC that the
GL context is bound to becomes incorrect in sceanarios using multiple
windows with GtkGLArea/GdkGLArea items (which would cause the artifacts in
programs that use multiple windows with GtkGLArea/GdkGLArea items, and it
turns out that GdkWin32Display::gl_hdc is actually not necessary to help
keep track of the HDCs we use for our GL contexts.

Partly based on patch from Lukas K <lu@0x83.eu>

https://bugzilla.gnome.org/show_bug.cgi?id=789213
2017-11-04 10:39:58 +08:00
..
2017-04-03 13:29:59 -04:00
2017-07-18 14:54:11 -04:00
2017-05-22 14:26:32 +01:00
2016-06-29 15:10:39 +02:00
2016-08-23 21:01:44 +02:00
2016-06-09 17:45:40 +01:00
2016-05-17 14:16:39 -04:00
2015-05-08 13:34:25 -04:00
2016-08-23 21:01:44 +02:00
2016-08-23 21:01:44 +02:00
2016-08-23 21:01:44 +02:00
2016-05-08 15:34:28 +02:00
2017-03-13 03:52:06 -04:00
2016-06-09 17:45:40 +01:00
2016-04-30 21:06:38 -04:00
2014-11-06 12:24:43 +01:00
2017-10-31 18:27:34 +00:00
2016-05-08 15:34:28 +02:00
2016-04-27 23:18:16 -04:00
2016-04-18 11:46:58 -04:00
2015-10-03 22:26:27 -04:00
2016-10-28 06:04:58 +02:00
2016-10-28 06:04:58 +02:00