aboutsummaryrefslogtreecommitdiffstats
path: root/src/x11_gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11_gl.c')
-rw-r--r--src/x11_gl.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/x11_gl.c b/src/x11_gl.c
index 34ac7e8..64061d1 100644
--- a/src/x11_gl.c
+++ b/src/x11_gl.c
@@ -209,6 +209,18 @@ puglGetProcAddress(const char* name)
return glXGetProcAddress((const uint8_t*)name);
}
+PuglStatus
+puglEnterContext(PuglView* view)
+{
+ return view->backend->enter(view, NULL);
+}
+
+PuglStatus
+puglLeaveContext(PuglView* view)
+{
+ return view->backend->leave(view, NULL);
+}
+
const PuglBackend*
puglGlBackend(void)
{