Mac EXC_BAD_ACCESS on calling glGenRenderbuffers()


macrumors 6502
Original poster
Apr 7, 2011
I'm trying to move a codebase I have from GL2 to GL3 and as soon as I call glGenRenderbuffers() I get EXC_BAD_ACCESS. I think the function pointer itself is the problem and not the second pointer parameter (the code works perfectly when using a GL 2.X profile with GLEW extension loading). Any ideas?


Staff member
Aug 9, 2009
Any ideas?
Use the debugger.

If you don't know how to use it, learn to. Not knowing how to use a debugger is a serious impediment.

I recommend learning to use a debugger by doing it on a known-working program, rather than a known-failing one (suggested: one of Apple's sample code projects). It lets you see the normal operation of setting breakpoints, watchpoints, tracing, stepping, inspecting values, etc. If you try doing that on a malfunctioning program, it's a lot harder to see what's normal, since a malfunctioning program is abnormal.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.