But in valgrind, it works fine always. It's strange because this project is getting quite old, and I haven't really had problems like this with OpenGL/GLFW before. However, I've always had the following errors in valgrind at the very start of my program, but I don't know what to do about it: https://bpaste.net/show/8ffb249942a4