summaryrefslogtreecommitdiff
path: root/gdk/macos/gdkmacosglcontext-private.h
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/macos/gdkmacosglcontext-private.h
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/macos/gdkmacosglcontext-private.h')
-rw-r--r--gdk/macos/gdkmacosglcontext-private.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdk/macos/gdkmacosglcontext-private.h b/gdk/macos/gdkmacosglcontext-private.h
index 8d5eea931c..a09a2da905 100644
--- a/gdk/macos/gdkmacosglcontext-private.h
+++ b/gdk/macos/gdkmacosglcontext-private.h
@@ -62,7 +62,6 @@ GdkGLContext *_gdk_macos_gl_context_new (GdkMacosDisplay *display,
gboolean attached,
GdkGLContext *share,
GError **error);
-gboolean _gdk_macos_gl_context_make_current (GdkMacosGLContext *self);
G_END_DECLS