mirror of
https://github.com/mpv-player/mpv
synced 2024-12-17 20:34:58 +00:00
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.
This commit is contained in:
parent
8d004f07a4
commit
8b291aff96
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user