The 2024 Wheel Reinvention Jam just concluded. See the results.

Debugging opengl

Is there any good program for debugging OpenGL? IE getting texture dumps, states, etc from shaders? Currently pulling my hair out over "debugging" OpenGL...

Edited by dmitsuki on Reason: Initial post
RenderDoc and Nvidia Nsight Graphics. Both work best on GL core profile, compatibility may or may not work.

Also don't forget to create debug context and enable debug callback - that will catch most of obvious errors and provide callstack where error happens and message explaining situation.

Example on win32: https://gist.github.com/mmozeiko/...2a1f6647#file-win32_opengl-c-L326

Edited by Mārtiņš Možeiko on
There is RenderDoc on Windows and Linux. I'm not saying it's good, but I used it several times and it helped.
Thanks, I was looking for Renderdoc and couldn't find it.