this post was submitted on 06 Oct 2023
0 points (50.0% liked)

C++

1783 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
 

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

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 2 points 1 year ago (1 children)

I think you'd need i3 instead of Sway for an X11 test.

[โ€“] [email protected] 2 points 1 year ago

i logged into i3 and tested it, anyway, i already solved it, the problem we're the glfwWindowHint calls, now it works normally, thank you anyway