We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For some reason glfw is not using wayland. It's not even giving wayland support
#include <GL/gl.h> #include <GLFW/glfw3.h> #include <fmt/core.h> int main() { GLFWwindow *window; if (!glfwInit()) return -1; glfwWindowHint(GLFW_SAMPLES, 4); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 6); glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); if (glfwPlatformSupported(GLFW_PLATFORM_WAYLAND)) { glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_WAYLAND); } else { fmt::println("No Wayland Support"); } window = glfwCreateWindow(800, 800, "GLFW", NULL, NULL); if (window == NULL) { glfwTerminate(); return 0; } glfwMakeContextCurrent(window); while (!glfwWindowShouldClose(window)) { glfwSwapBuffers(window); glfwPollEvents(); } glfwDestroyWindow(window); glfwTerminate(); return 0; }
It returns No Wayland Support And a window appears but it uses x11 and pitch black.
No Wayland Support
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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: