Fix build when SDL2 is not built against wayland.

Fixes https://github.com/libretro/RetroArch/issues/9583.
This commit is contained in:
orbea 2019-10-15 09:09:22 -07:00
parent 6b93b77d0d
commit 55d123d95a

View File

@ -65,7 +65,8 @@ void sdl2_set_handles(void *data, enum rarch_display_type display_type)
#endif
break;
case RARCH_DISPLAY_WAYLAND:
#ifdef HAVE_WAYLAND
/* SDL_VIDEO_DRIVER_WAYLAND is defined by SDL2 */
#if defined(HAVE_WAYLAND) && defined(SDL_VIDEO_DRIVER_WAYLAND)
video_driver_display_type_set(RARCH_DISPLAY_WAYLAND);
video_driver_display_set((uintptr_t)info.info.wl.display);
video_driver_window_set((uintptr_t)info.info.wl.surface);