Handmade Network»Forums
3 posts
Debugging opengl
Edited by dmitsuki on Reason: Initial post
Is there any good program for debugging OpenGL? IE getting texture dumps, states, etc from shaders? Currently pulling my hair out over "debugging" OpenGL...
Mārtiņš Možeiko
2559 posts / 2 projects
Debugging opengl
Edited by Mārtiņš Možeiko on
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
Simon Anciaux
1337 posts
Debugging opengl
There is RenderDoc on Windows and Linux. I'm not saying it's good, but I used it several times and it helped.
3 posts
Debugging opengl
Thanks, I was looking for Renderdoc and couldn't find it.