Fix build without libva-x11

This commit is contained in:
Cameron Gutman
2021-11-25 17:51:08 +03:00
parent 84ea483b4c
commit 0fa7723f51

View File

@@ -59,8 +59,8 @@ VAAPIRenderer::openDisplay(SDL_Window* window)
m_WindowSystem = info.subsystem;
if (info.subsystem == SDL_SYSWM_X11) {
m_XWindow = info.info.x11.window;
#ifdef HAVE_LIBVA_X11
m_XWindow = info.info.x11.window;
display = vaGetDisplay(info.info.x11.display);
if (display == nullptr) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,