I'm trying to find what is causing a segfault when glDrawArrays is called (as gdb says) in my simple program.
When I use the OpenGl calls directly, the program runs fine.
But when I wrap them up into two classes (under construction, of vao and vbo) the program segfaults.
So, in my wrappers, I definitly disabled something or set something I'm not supposed to.
My question is, how do I get some diagnostics that will help me pinpoint the source of the problem ?
I'm looking for something similar to what glGetShaderiv does, but for vao and vbo s, that will tell me if I have..say.. unbound a buffer by mistake.
[I'm not posting the code here, but if any of you want to donate some time by testing a segfaulting example, here is a tar.gz of the source . You'll need working libraries of sfml-2.0rc, glew and gcc=4.6 .]