diff options
Diffstat (limited to 'video/out/gl_x11egl.c')
-rw-r--r-- | video/out/gl_x11egl.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/video/out/gl_x11egl.c b/video/out/gl_x11egl.c index 1f6f328251..bfb88c3110 100644 --- a/video/out/gl_x11egl.c +++ b/video/out/gl_x11egl.c @@ -93,10 +93,11 @@ static bool create_context_egl(MPGLContext *ctx, EGLConfig config, return true; } -static bool config_window_x11_egl_(struct MPGLContext *ctx, int flags, bool es) +static bool config_window_x11_egl(struct MPGLContext *ctx, int flags) { struct priv *p = ctx->priv; struct vo *vo = ctx->vo; + bool es = flags & VOFLAG_GLES; if (p->egl_context) { vo_x11_config_vo_window(vo, NULL, flags, "gl"); @@ -140,16 +141,6 @@ static bool config_window_x11_egl_(struct MPGLContext *ctx, int flags, bool es) return true; } -static bool config_window_x11_egl(struct MPGLContext *ctx, int flags) -{ - return config_window_x11_egl_(ctx, flags, false); -} - -static bool config_window_x11_egles(struct MPGLContext *ctx, int flags) -{ - return config_window_x11_egl_(ctx, flags, true); -} - static void releaseGlContext_egl(MPGLContext *ctx) { struct priv *p = ctx->priv; @@ -177,14 +168,3 @@ void mpgl_set_backend_x11egl(MPGLContext *ctx) ctx->vo_uninit = vo_x11_uninit; ctx->vo_control = vo_x11_control; } - -void mpgl_set_backend_x11egles(MPGLContext *ctx) -{ - ctx->priv = talloc_zero(ctx, struct priv); - ctx->config_window = config_window_x11_egles; - ctx->releaseGlContext = releaseGlContext_egl; - ctx->swapGlBuffers = swapGlBuffers_egl; - ctx->vo_init = vo_x11_init; - ctx->vo_uninit = vo_x11_uninit; - ctx->vo_control = vo_x11_control; -} |