aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window/window.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/window/window.c b/src/window/window.c
index 701fbb3..03bb45b 100644
--- a/src/window/window.c
+++ b/src/window/window.c
@@ -2109,3 +2109,11 @@ void mgl_window_flush(mgl_window *self) {
mgl_context *context = mgl_get_context();
XFlush(context->connection);
}
+
+void* mgl_window_get_egl_display(mgl_window *self) {
+ x11_context *x11_context = self->context;
+ if(x11_context->render_api == MGL_RENDER_API_EGL)
+ return x11_context->egl.egl_display;
+ else
+ return NULL;
+}