(Define a macro to) facilitate OpenGL command debugging?

后端 未结 2 569
情深已故
情深已故 2021-02-09 07:56

Sometimes it takes a long time of inserting conditional prints and checks to glGetError() to narrow down using a form of binary search where the first function call

2条回答
  •  暖寄归人
    2021-02-09 08:42

    BuGLe sounds like it will do what you want:

    • Dump a textual log of all GL calls made.
    • Take a screenshot or capture a video.
    • Call glGetError after each call to check for errors, and wrap glGetError so that this checking is transparent to your program.
    • Capture and display statistics (such as frame rate)
    • Force a wireframe mode
    • Recover a backtrace from segmentation faults inside the driver, even if the driver is compiled without symbols.

提交回复
热议问题