summaryrefslogtreecommitdiff
path: root/gdk/gdkdisplay.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2021-07-07 04:40:34 +0200
committerBenjamin Otte <otte@redhat.com>2021-07-22 16:27:32 +0200
commit9f1d6e1f4474707aa9931660da6c3154b2281705 (patch)
tree3c3a08a86fab2fa8d3f56f2c805e5c15b800f9de /gdk/gdkdisplay.c
parent15ed1a329e2f4939b239d0845f3200df1cdcdd7e (diff)
downloadgtk+-9f1d6e1f4474707aa9931660da6c3154b2281705.tar.gz
gl: Move vfunc
Instead of Display::make_gl_context_current() we now have GLContext::clear_current() GLContext::make_current() This fits better with the backends (we can actually implement clearCurrent on macOS now) and makes it easier to implement different GL backends for backends (like EGL/GLX on X11). We also pass a surfaceless boolean to make_current() so the calling code can decide if a surface needs to be bound or not, because the backends were all doing whatever, which was very counterproductive.
Diffstat (limited to 'gdk/gdkdisplay.c')
-rw-r--r--gdk/gdkdisplay.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 5891bbe5f0..8da1a4cc9f 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -1298,21 +1298,6 @@ gdk_display_get_gl_context (GdkDisplay *self)
return priv->gl_context;
}
-/*< private >
- * gdk_display_make_gl_context_current:
- * @display: a `GdkDisplay`
- * @context: (optional): a `GdkGLContext`
- *
- * Makes the given @context the current GL context, or unsets
- * the current GL context if @context is %NULL.
- */
-gboolean
-gdk_display_make_gl_context_current (GdkDisplay *display,
- GdkGLContext *context)
-{
- return GDK_DISPLAY_GET_CLASS (display)->make_gl_context_current (display, context);
-}
-
GdkDebugFlags
gdk_display_get_debug_flags (GdkDisplay *display)
{