SDL_GL_SwapBuffers Segfault

Posted by RyanG on Stack Overflow See other posts from Stack Overflow or by RyanG
Published on 2010-03-08T16:12:37Z Indexed on 2010/03/08 16:21 UTC
Read the original article Hit count: 220

Filed under:
|

I'm getting a segfault that GDB says is coming from SDL_GL_SwapBuffers. However, I can't imagine why. The SDL documentation mentions no specific pre-conditions for calling swapBuffers except that double buffering be allowed. Is this an option I have to turn on while initializing OpenGL or is this a hardware capability thing?

My code:

http://pastie.org/859721

(Ignore the unused variables, strange comments and other things. I haven't prettied this up at all. :P)

© Stack Overflow or respective owner

Related posts about opengl

Related posts about sdl