Fix build when SDL2 is not built against wayland.
Fixes https://github.com/libretro/RetroArch/issues/9583.
This commit is contained in:
parent
6b93b77d0d
commit
55d123d95a
|
@ -65,7 +65,8 @@ void sdl2_set_handles(void *data, enum rarch_display_type display_type)
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case RARCH_DISPLAY_WAYLAND:
|
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_type_set(RARCH_DISPLAY_WAYLAND);
|
||||||
video_driver_display_set((uintptr_t)info.info.wl.display);
|
video_driver_display_set((uintptr_t)info.info.wl.display);
|
||||||
video_driver_window_set((uintptr_t)info.info.wl.surface);
|
video_driver_window_set((uintptr_t)info.info.wl.surface);
|
||||||
|
|
Loading…
Reference in New Issue