1
0
Fork 0

temp remove wayland

This commit is contained in:
namedkitten 2020-04-11 16:07:34 +01:00
parent b794a741aa
commit 90b7f38f0e

View file

@ -82,11 +82,11 @@ public:
if (QGuiApplication::platformName().contains("xcb")) { if (QGuiApplication::platformName().contains("xcb")) {
params[2].type = MPV_RENDER_PARAM_X11_DISPLAY; params[2].type = MPV_RENDER_PARAM_X11_DISPLAY;
params[2].data = QX11Info::display(); params[2].data = QX11Info::display();
} else if (QGuiApplication::platformName().contains("wayland")) { } /* else if (QGuiApplication::platformName().contains("wayland")) {
params[2].type = MPV_RENDER_PARAM_WL_DISPLAY; params[2].type = MPV_RENDER_PARAM_WL_DISPLAY;
auto *native = QGuiApplication::platformNativeInterface(); auto *native = QGuiApplication::platformNativeInterface();
params[2].data = native->nativeResourceForWindow("display", NULL); params[2].data = native->nativeResourceForWindow("display", NULL);
} } */
#endif #endif
if (mpv_render_context_create(&obj->mpv_gl, obj->mpv, params) < 0) if (mpv_render_context_create(&obj->mpv_gl, obj->mpv, params) < 0)