mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-28 05:50:21 +00:00
Fix build without SDL_VIDEO_DRIVER_WAYLAND
This commit is contained in:
parent
324e3dffa0
commit
b9709d0825
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue