From 8b291aff96b98a070f39c9a5082c365d4c3ba38c Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 12 Oct 2015 21:29:35 +0200 Subject: vo_opengl: x11egl: reject nvidia drivers when autoprobing Newer nVidia drivers support EGL, but they seem to work badly, apparently don't support some needed features or not in a form we want (such as swap control), and vdpau interop is not available. Disable it by default, because I'm tired of explaining this issue. Can be reverted as soon as nVidia release working drivers. --- video/out/opengl/x11egl.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'video') diff --git a/video/out/opengl/x11egl.c b/video/out/opengl/x11egl.c index fb29cb6268..4999dc5a4b 100644 --- a/video/out/opengl/x11egl.c +++ b/video/out/opengl/x11egl.c @@ -160,6 +160,12 @@ static int mpegl_init(struct MPGLContext *ctx, int flags) ctx->native_display_type = "x11"; ctx->native_display = vo->x11->display; + if (vo->probing) { + const char *vendor = ctx->gl->GetString(GL_VENDOR); + if (vendor && strstr(vendor, "NVIDIA Corporation")) + goto uninit; + } + return true; uninit: -- cgit v1.2.3