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
it just starts and ends with code 0 without creating any output to the terminal or any window
That’s because you need to run an event loop, your window is being created successfully, but your program immediately exits after the fact because the line directly after glfwCreateWindow is return EXIT_SUCCESS. You’re probably good to follow the rest of the tutorial now
thank you :D