diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/gpu/context.c | 4 | ||||
-rw-r--r-- | video/out/opengl/context_glx.c | 25 |
2 files changed, 0 insertions, 29 deletions
diff --git a/video/out/gpu/context.c b/video/out/gpu/context.c index 85f1aa7667..68ccf954db 100644 --- a/video/out/gpu/context.c +++ b/video/out/gpu/context.c @@ -35,7 +35,6 @@ /* OpenGL */ extern const struct ra_ctx_fns ra_ctx_glx; -extern const struct ra_ctx_fns ra_ctx_glx_probe; extern const struct ra_ctx_fns ra_ctx_x11_egl; extern const struct ra_ctx_fns ra_ctx_drm_egl; extern const struct ra_ctx_fns ra_ctx_cocoa; @@ -83,9 +82,6 @@ static const struct ra_ctx_fns *contexts[] = { #if HAVE_GL_WAYLAND &ra_ctx_wayland_egl, #endif -#if HAVE_GL_X11 - &ra_ctx_glx_probe, -#endif #if HAVE_EGL_X11 &ra_ctx_x11_egl, #endif diff --git a/video/out/opengl/context_glx.c b/video/out/opengl/context_glx.c index 7dc8062c1c..b415372e62 100644 --- a/video/out/opengl/context_glx.c +++ b/video/out/opengl/context_glx.c @@ -346,20 +346,6 @@ uninit: return false; } -static bool glx_init_probe(struct ra_ctx *ctx) -{ - if (!glx_init(ctx)) - return false; - - struct priv *p = ctx->priv; - if (!(p->gl.mpgl_caps & MPGL_CAP_VDPAU)) { - MP_VERBOSE(ctx, "No vdpau support found - probing more things.\n"); - glx_uninit(ctx); - return false; - } - - return true; -} static void resize(struct ra_ctx *ctx) { @@ -401,14 +387,3 @@ const struct ra_ctx_fns ra_ctx_glx = { .init = glx_init, .uninit = glx_uninit, }; - -const struct ra_ctx_fns ra_ctx_glx_probe = { - .type = "opengl", - .name = "x11probe", - .reconfig = glx_reconfig, - .control = glx_control, - .wakeup = glx_wakeup, - .wait_events = glx_wait_events, - .init = glx_init_probe, - .uninit = glx_uninit, -}; |