Checking OpenGL Resource Leaks

So, I have a fairly large openGL program, and checking for a normal memory leak (those that have been added and removed) is pretty trivial - just run it on valgrind.

But what is the best way to check for potential opengl leaks? Is there an opengl utility that will tell you how many resources (like framebuffers) are being used at that time or something? Or is this the only way to attach a counter to each glGenBlah and glDeleteBlah group?

+4
source share
2 answers

glIntercept checks for textures that have not been freed, perhaps it also checks for framebuffers, but if not, it can be easily changed for this.

+3
source

There are certain tools for this. Commercial gDEBugger can do this, but it is not free. glslDevil may work as a free alternative, but I'm not sure if it can find leaks.

+1
source

Source: https://habr.com/ru/post/1332870/


All Articles