diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-10-06 18:54:58 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-10-07 16:21:57 +0100 |
commit | 2dfca143bb6e09d900fa186ba8ecf9bcea6ac30d (patch) | |
tree | 7eed692db6398d59c0228f495cb3aac52bd08f42 /gdk/gdkglcontext.h | |
parent | b23eabbd642a5d4c46a173d5324a76f4cb63c9f7 (diff) | |
download | gtk+-2dfca143bb6e09d900fa186ba8ecf9bcea6ac30d.tar.gz |
gdk: Allow querying if a GL context is in legacy mode
We want to have the ability to fall back to legacy GL contexts when
creating them. In order to do so, we need to store the legacy bit on the
GdkGLContext, as well as being able to query it.
Setting the legacy bit from outside GDK is not possible; we cannot
create GL contexts in 3.2 core profile *and* compatibility modes at the
same time, and if we allowed users to select the legacy mode themselves,
it would break the creation of the GdkWindow's paint GL context.
What we do allow is falling back to legacy GL context if the platform
does not support 3.2 core profiles — for instance, on older GPUs or
inside virtualized environments.
We are also going to use the legacy bit internally, to choose which GL
API we can use when drawing GL content.
https://bugzilla.gnome.org/show_bug.cgi?id=756142
Diffstat (limited to 'gdk/gdkglcontext.h')
-rw-r--r-- | gdk/gdkglcontext.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdk/gdkglcontext.h b/gdk/gdkglcontext.h index c9603ea762..daacd1e0c7 100644 --- a/gdk/gdkglcontext.h +++ b/gdk/gdkglcontext.h @@ -52,6 +52,8 @@ GDK_AVAILABLE_IN_3_16 void gdk_gl_context_get_version (GdkGLContext *context, int *major, int *minor); +GDK_AVAILABLE_IN_3_20 +gboolean gdk_gl_context_is_legacy (GdkGLContext *context); GDK_AVAILABLE_IN_3_16 void gdk_gl_context_set_required_version (GdkGLContext *context, |