Appendix D. Troubleshooting and Debugging

As a normal part of development, occasionally your application will not render what you intend. This will be less of a problem as you become more proficient with OpenGL but will never go away completely.

This section contains some tips to help you resolve some of the more common OpenGL-related issues in your application.

D.1 Debugging Tools

Several tools exist to aid developers in debugging and tuning their applications. Developers can use these tools to capture sequences of OpenGL commands issued by an application, set breakpoints at OpenGL commands, and examine OpenGL state. Some also provide performance information.

At the time this book went to press, popular OpenGL debugging tools included Apple’s ...

Get OpenGL Distilled now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.