EXC_BAD_ACCESS on calling glGenRenderbuffers()

Discussion in 'Mac Programming' started by Starfox, Nov 30, 2011.

  1. macrumors regular

    #1
    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?
     
  2. macrumors 603

    #2
    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.
     
  3. macrumors 65816

    Partron22

    #3

Share This Page