gl3w icon indicating copy to clipboard operation
gl3w copied to clipboard

glCreateBuffers Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

Open plumhly opened this issue 5 years ago • 2 comments

when I call glCreateBuffers with Xcode on Mac, it send error: Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)

plumhly avatar Jan 11 '20 15:01 plumhly

I have been encountering the same problem.

DomAlexRod avatar Apr 09 '20 12:04 DomAlexRod

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.

DomAlexRod avatar Apr 09 '20 12:04 DomAlexRod