summaryrefslogtreecommitdiffstats
path: root/video/out/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl')
-rw-r--r--video/out/opengl/context_x11.c14
-rw-r--r--video/out/opengl/context_x11egl.c12
2 files changed, 26 insertions, 0 deletions
diff --git a/video/out/opengl/context_x11.c b/video/out/opengl/context_x11.c
index 11700efdf4..48533fe701 100644
--- a/video/out/opengl/context_x11.c
+++ b/video/out/opengl/context_x11.c
@@ -308,6 +308,16 @@ static void glx_swap_buffers(struct MPGLContext *ctx)
glXSwapBuffers(ctx->vo->x11->display, ctx->vo->x11->window);
}
+static void glx_wakeup(struct MPGLContext *ctx)
+{
+ vo_x11_wakeup(ctx->vo);
+}
+
+static void glx_wait_events(struct MPGLContext *ctx, int64_t until_time_us)
+{
+ vo_x11_wait_events(ctx->vo, until_time_us);
+}
+
const struct mpgl_driver mpgl_driver_x11 = {
.name = "x11",
.priv_size = sizeof(struct glx_context),
@@ -315,6 +325,8 @@ const struct mpgl_driver mpgl_driver_x11 = {
.reconfig = glx_reconfig,
.swap_buffers = glx_swap_buffers,
.control = glx_control,
+ .wakeup = glx_wakeup,
+ .wait_events = glx_wait_events,
.uninit = glx_uninit,
};
@@ -325,5 +337,7 @@ const struct mpgl_driver mpgl_driver_x11_probe = {
.reconfig = glx_reconfig,
.swap_buffers = glx_swap_buffers,
.control = glx_control,
+ .wakeup = glx_wakeup,
+ .wait_events = glx_wait_events,
.uninit = glx_uninit,
};
diff --git a/video/out/opengl/context_x11egl.c b/video/out/opengl/context_x11egl.c
index 2e4fd5fa90..aea388b9a2 100644
--- a/video/out/opengl/context_x11egl.c
+++ b/video/out/opengl/context_x11egl.c
@@ -191,6 +191,16 @@ static void mpegl_swap_buffers(MPGLContext *ctx)
eglSwapBuffers(p->egl_display, p->egl_surface);
}
+static void mpegl_wakeup(struct MPGLContext *ctx)
+{
+ vo_x11_wakeup(ctx->vo);
+}
+
+static void mpegl_wait_events(struct MPGLContext *ctx, int64_t until_time_us)
+{
+ vo_x11_wait_events(ctx->vo, until_time_us);
+}
+
const struct mpgl_driver mpgl_driver_x11egl = {
.name = "x11egl",
.priv_size = sizeof(struct priv),
@@ -198,5 +208,7 @@ const struct mpgl_driver mpgl_driver_x11egl = {
.reconfig = mpegl_reconfig,
.swap_buffers = mpegl_swap_buffers,
.control = mpegl_control,
+ .wakeup = mpegl_wakeup,
+ .wait_events = mpegl_wait_events,
.uninit = mpegl_uninit,
};