How are OpenGL programs debugged?
Posted
by
manasij7479
on Stack Overflow
See other posts from Stack Overflow
or by manasij7479
Published on 2012-06-22T01:13:09Z
Indexed on
2012/06/22
3:16 UTC
Read the original article
Hit count: 136
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 .]
© Stack Overflow or respective owner