MattDiamond
2004.09.20, 07:17 PM
I'm having a problem that seems like a classic case of not (re)setting OpenGL's state correctly. The first time through my render loop I get the correct result, but subsequent times through I do not. I've had no luck spotting the problem by examining the code, and it seems to me I could probably solve it easily if I just had a quick-n-dirty way to dump or log OpenGL's state before each run through the loop.
I seemed to recall someone posting that they had such a coded function written already on the Mac-OpenGL mailing list, but Apple's mailing list archive no longer appears to allow searching(!) so I couldn't find it.
I then spent 20 minutes experimenting with OpenGL Profiler this morning because I recalled that it exposes OpenGL's state while your app is running. While this is true, it does not seem to have a way to write out the results for DIFF'ing. Rather, you have to click on twisties to interactively view small groupings of the OpenGL attributes. I also can't find a way to open multiple snapshots of the state for side-by-side comparisons.
If anyone could point me to a tip or code, it would save me some time. Thanks!
I seemed to recall someone posting that they had such a coded function written already on the Mac-OpenGL mailing list, but Apple's mailing list archive no longer appears to allow searching(!) so I couldn't find it.
I then spent 20 minutes experimenting with OpenGL Profiler this morning because I recalled that it exposes OpenGL's state while your app is running. While this is true, it does not seem to have a way to write out the results for DIFF'ing. Rather, you have to click on twisties to interactively view small groupings of the OpenGL attributes. I also can't find a way to open multiple snapshots of the state for side-by-side comparisons.
If anyone could point me to a tip or code, it would save me some time. Thanks!