veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.18k stars 219 forks source link

Build syswm_x11.go only if actually using X11 #415

Closed flyx closed 5 years ago

flyx commented 5 years ago

This enables using this binding with SDL2's kmsdrm video driver (HW-accelerated drawing without X11; not enabled by default in SDL2, must configure with --enable-video-kmsdrm).

veeableful commented 5 years ago

Thanks @flyx! Come to think of it, it really should be enabled manually by user if they want X11 SysWMmsg data (at least, I don't think it's possible to automatically make it work).