diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2015-02-12 12:34:28 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2015-02-12 12:34:28 +0000 |
commit | 022724aa69bbf1c65768b87d0f3e319257284b40 (patch) | |
tree | 70a133c4ed74584e3a875b173a6fa7bdd383ef51 /gtk/gtkglarea.c | |
parent | 015bf99816969cff366e201169e6c54fd8b3cf3d (diff) | |
download | gtk+-022724aa69bbf1c65768b87d0f3e319257284b40.tar.gz |
gl: Drop profile for gdk_window_create_gl_context()
Now that we have a two-stages GL context creation sequence, we can move
the profile to a pre-realize option, like the debug and forward
compatibility bits, or the GL version to use.
Diffstat (limited to 'gtk/gtkglarea.c')
-rw-r--r-- | gtk/gtkglarea.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c index e6f4236e6b..7de3182fd5 100644 --- a/gtk/gtkglarea.c +++ b/gtk/gtkglarea.c @@ -322,7 +322,7 @@ gtk_gl_area_real_create_context (GtkGLArea *area) GError *error = NULL; GdkGLContext *context; - context = gdk_window_create_gl_context (gtk_widget_get_window (widget), priv->profile, &error); + context = gdk_window_create_gl_context (gtk_widget_get_window (widget), &error); if (priv->error != NULL) { gtk_gl_area_set_error (area, error); @@ -330,6 +330,8 @@ gtk_gl_area_real_create_context (GtkGLArea *area) return NULL; } + gdk_gl_context_set_profile (context, priv->profile); + gdk_gl_context_realize (context, &error); if (priv->error != NULL) { |