mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 07:15:27 +00:00
Fix build without SDL_VIDEO_DRIVER_WAYLAND
This commit is contained in:
parent
324e3dffa0
commit
b9709d0825
@ -2,6 +2,10 @@
|
||||
|
||||
#include <SDL_syswm.h>
|
||||
|
||||
#ifndef SDL_VIDEO_DRIVER_WAYLAND
|
||||
#warning Unable to use WaylandVsyncSource without SDL support
|
||||
#else
|
||||
|
||||
const struct wl_callback_listener WaylandVsyncSource::s_FrameListener = {
|
||||
.done = WaylandVsyncSource::frameDone,
|
||||
};
|
||||
@ -73,3 +77,5 @@ void WaylandVsyncSource::frameDone(void* data, struct wl_callback* oldCb, uint32
|
||||
wl_surface_commit(me->m_Surface);
|
||||
wl_display_flush(me->m_Display);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user