I was using this OpenGL tutorial, and when i compile the program and execute it, it fails with the error “Failed to create context: Arguments are inconsistent” the code: https://pastebin.com/1hQJYHxe Im using Arch Linux with sway (Wayland) glxinfo output: https://pastebin.com/VXWtib2W
Try doing what e0qdk suggests in this comment as it seems to be an issue with how GLFW creates windows in wayland. You’re technically creating an eGL window through it and the profile version is different (egl2 is opengl4.x compatible while egl1 is opengl 3.x compatible I think?), so just remove the window calls to glfwWindowHint and see what version it tries to use by default
i commented all the calls to glfwWindowHint, and now it just exits inmediately with code 0, so i think it is working, although it doesnt create any window either, there is a way to see which version is using by default?