What is the best way to debug OpenGL?

前端 未结 10 1623
半阙折子戏
半阙折子戏 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:27

    I found you can check using glGetError after every line of code your suspect will be wrong, but after do it, the code looks not very clean but it works.

提交回复
热议问题