summaryrefslogtreecommitdiff
path: root/gtk/gtkglarea.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2015-02-12 12:34:28 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2015-02-12 12:34:28 +0000
commit022724aa69bbf1c65768b87d0f3e319257284b40 (patch)
tree70a133c4ed74584e3a875b173a6fa7bdd383ef51 /gtk/gtkglarea.c
parent015bf99816969cff366e201169e6c54fd8b3cf3d (diff)
downloadgtk+-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.c4
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)
{