mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Fix false warning when building without libva-x11 or libva-wayland
This commit is contained in:
@@ -3,13 +3,13 @@
|
|||||||
#include "renderer.h"
|
#include "renderer.h"
|
||||||
|
|
||||||
// Avoid X11 if SDL was built without it
|
// Avoid X11 if SDL was built without it
|
||||||
#ifndef SDL_VIDEO_DRIVER_X11
|
#if !defined(SDL_VIDEO_DRIVER_X11) && defined(HAVE_LIBVA_X11)
|
||||||
#warning Unable to use libva-x11 without SDL support
|
#warning Unable to use libva-x11 without SDL support
|
||||||
#undef HAVE_LIBVA_X11
|
#undef HAVE_LIBVA_X11
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Avoid Wayland if SDL was built without it
|
// Avoid Wayland if SDL was built without it
|
||||||
#ifndef SDL_VIDEO_DRIVER_WAYLAND
|
#if !defined(SDL_VIDEO_DRIVER_WAYLAND) && defined(HAVE_LIBVA_WAYLAND)
|
||||||
#warning Unable to use libva-wayland without SDL support
|
#warning Unable to use libva-wayland without SDL support
|
||||||
#undef HAVE_LIBVA_WAYLAND
|
#undef HAVE_LIBVA_WAYLAND
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user