Permalink
Browse files

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.
  • Loading branch information...
1 parent 8d004f0 commit 8b291aff96b98a070f39c9a5082c365d4c3ba38c wm4 committed Oct 12, 2015
Showing with 6 additions and 0 deletions.
  1. +6 −0 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:

0 comments on commit 8b291af

Please sign in to comment.