What is the best way to debug OpenGL?

前端 未结 10 1642
半阙折子戏
半阙折子戏 2020-12-12 17:51

I find that a lot of the time, OpenGL will show you it failed by not drawing anything. I\'m trying to find ways to debug OpenGL programs, by inspecting the transformation ma

10条回答
  •  难免孤独
    2020-12-12 18:29

    GLIntercept is your best bet. From their web page:

    • Save all OpenGL function calls to text or XML format with the option to log individual frames.
    • Free camera. Fly around the geometry sent to the graphics card and enable/disable wireframe/backface-culling/view frustum render
    • Save and track display lists. Saving of the OpenGL frame buffer (color/depth/stencil) pre and post render calls. The ability to save the "diff" of pre and post images is also available.

提交回复
热议问题