try platform check for glfw
This commit is contained in:
@@ -20,6 +20,10 @@ namespace Archimedes {
|
|||||||
|
|
||||||
WindowGLFW(Window* p, const std::function<void(Event*)>& sendEvent) {
|
WindowGLFW(Window* p, const std::function<void(Event*)>& sendEvent) {
|
||||||
|
|
||||||
|
if(glfwPlatformSupported(GLFW_PLATFORM_WAYLAND))
|
||||||
|
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_WAYLAND);
|
||||||
|
|
||||||
|
|
||||||
data.window = p;
|
data.window = p;
|
||||||
data.sendEvent = sendEvent;
|
data.sendEvent = sendEvent;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user