mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
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
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user