summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-12 21:29:35 +0200
committerwm4 <wm4@nowhere>2015-10-12 21:30:13 +0200
commit8b291aff96b98a070f39c9a5082c365d4c3ba38c (patch)
tree8e2f40ecc692905757a82accc9a4a3ea642379d3 /video
parent8d004f07a459fc390e243d486419c23197dedbf8 (diff)
downloadmpv-8b291aff96b98a070f39c9a5082c365d4c3ba38c.tar.bz2
mpv-8b291aff96b98a070f39c9a5082c365d4c3ba38c.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/opengl/x11egl.c6
1 files changed, 6 insertions, 0 deletions
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: