Add GDK_GL env var and GdkGLFlags

Desktop / GNOME / GTK - Alexander Larsson [redhat.com] - 6 November 2014 05:24 UTC

This moves the GDK_ALWAYS_USE_GL env var to GDK_GL=always. It also changes GDK_DEBUG=nogl to GDK_GL=disable, as GDK_DEBUG is really only about debug loggin.

It also adds some completely new flags:

software-draw-gl: Always use software fallback for drawing gl content to a cairo_t. This disables the fastpaths that exist for drawing directly to a window and instead reads back the pixels into a cairo image surface.

software-draw-surface: Always use software fallback for drawing cairo surfaces onto a gl-using window. This disables e.g. texture-from-pixmap on X11.

software-draw: Enables both the above.

90a5fa8 Add GDK_GL env var and GdkGLFlags
gdk/gdk.c | 16 +++++++++++++++-
gdk/gdkgl.c | 9 ++++++---
gdk/gdkglobals.c | 1 +
gdk/gdkinternals.h | 12 ++++++++++--
gdk/gdkwindow.c | 9 ++-------
5 files changed, 34 insertions(+), 13 deletions(-)

Upstream: git.gnome.org


  • Share