summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.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 /gdk/gdkwindow.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 'gdk/gdkwindow.c')
-rw-r--r--gdk/gdkwindow.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 94a09c78d0..2de1fa31cc 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -2742,7 +2742,6 @@ gdk_window_get_paint_gl_context (GdkWindow *window,
window->impl_window->gl_paint_context =
GDK_WINDOW_IMPL_GET_CLASS (window->impl)->create_gl_context (window->impl_window,
TRUE,
- GDK_GL_PROFILE_DEFAULT,
NULL,
&internal_error);
}
@@ -2768,7 +2767,6 @@ gdk_window_get_paint_gl_context (GdkWindow *window,
/**
* gdk_window_create_gl_context:
* @window: a #GdkWindow
- * @profile: the GL profile the context should target
* @error: return location for an error
*
* Creates a new #GdkGLContext matching the
@@ -2778,7 +2776,7 @@ gdk_window_get_paint_gl_context (GdkWindow *window,
* If the creation of the #GdkGLContext failed, @error will be set.
*
* Before using the returned #GdkGLContext, you will need to
- * call gdk_gl_context_make_current().
+ * call gdk_gl_context_make_current() or gdk_gl_context_realize().
*
* Returns: (transfer full): the newly created #GdkGLContext, or
* %NULL on error
@@ -2787,7 +2785,6 @@ gdk_window_get_paint_gl_context (GdkWindow *window,
**/
GdkGLContext *
gdk_window_create_gl_context (GdkWindow *window,
- GdkGLProfile profile,
GError **error)
{
GdkGLContext *paint_context;
@@ -2801,7 +2798,6 @@ gdk_window_create_gl_context (GdkWindow *window,
return GDK_WINDOW_IMPL_GET_CLASS (window->impl)->create_gl_context (window->impl_window,
FALSE,
- profile,
paint_context,
error);
}