Checking OpenGL resource leaks

Posted by kamziro on Stack Overflow See other posts from Stack Overflow or by kamziro
Published on 2010-12-21T08:32:58Z Indexed on 2010/12/21 8:54 UTC
Read the original article Hit count: 237

Filed under:
|

So I have a rather large openGL program going, and checking for normal memory leaks (those by new and delete) is rather trivial -- just run it on valgrind.

But what is the best way to check for potential opengl leaks? Is there an opengl utility that'll tell you how many resources (e.g framebuffers) are being used at the time, or such? Or is the only way to attach a counter to every glGenBlah and glDeleteBlah pairs?

© Stack Overflow or respective owner

Related posts about opengl

Related posts about memory-leaks