gl: Make all user GdkGLContexts not attached to any window

Desktop / GNOME / GTK - Alexander Larsson [redhat.com] - 13 October 2014 09:43 UTC

We make user facing gl contexts not attached to a surface if possible, or attached to dummy surfaces. This means nothing can accidentally read/write to the toplevel back buffer.

236d08c gl: Make all user GdkGLContexts not attached to any window
gdk/gdkglcontext.c | 18 ++---
gdk/gdkwindow.c | 7 +-
gdk/gdkwindowimpl.h | 1 +
gdk/wayland/gdkdisplay-wayland.h | 1 +
gdk/wayland/gdkglcontext-wayland.c | 19 +++++-
gdk/wayland/gdkglcontext-wayland.h | 2 +
gdk/wayland/gdkprivate-wayland.h | 2 +
gdk/wayland/gdkwindow-wayland.c | 41 +++++++++++
gdk/x11/gdkglcontext-x11.c | 131 +++++++++++++++++++++++-------------
gdk/x11/gdkglcontext-x11.h | 3 +
10 files changed, 164 insertions(+), 61 deletions(-)

Upstream: git.gnome.org


  • Share