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