-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GLFW Wayland Support #2558
Comments
Are you certain that Wayland is supported?
If you want another colour try setting |
That's my question. |
Sorry, I meant are you certain that Wayland is supported by your system? |
Hi, It looks like your GLFW library was compiled without Wayland support. The I also just noticed you are calling the init hint prior to calling init. This should be called prior to the init as follows: if (glfwPlatformSupported(GLFW_PLATFORM_WAYLAND)) {
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_WAYLAND);
} else {
fmt::println("No Wayland Support");
}
if (!glfwInit())
return -1; |
Yes, am sure its supported i already use a Wayland wm. Also i use vcpkg for the library management and here is the cmake command and for the hints i fixed it but it still doesn't work |
What version of GLFW have you got? According to vcpkg it should be 3.4 which is the latest.
|
Thank you it worked |
Excellent, then I shall mark this as closed. |
For some reason glfw is not using wayland. It's not even giving wayland support
It returns
No Wayland Support
And a window appears but it uses x11 and pitch black.The text was updated successfully, but these errors were encountered: