summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/x11egl.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/x11egl.c')
-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: