mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Merge pull request #9597 from orbea/wayland
Fix build when SDL2 is not built against wayland.
This commit is contained in:
commit
836aa69f9c
@ -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