gl3w
gl3w copied to clipboard
glCreateBuffers Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
when I call glCreateBuffers with Xcode on Mac, it send error: Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
I have been encountering the same problem.
Turns out this error occurs as the for OpenGL versions below 4.5 (my MacBook air supports up to 4.1) there is no glCreateBuffers function (hence trying to retrieve this results in a nullptr). Solution is simply to use glGenBuffers instead.