Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Mulligan

OpenGL OpenGL Error Detection

This topic is 5493 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you (if you do) detect OpenGL errors? I dont mean how can you detect them, but do you use any tricks to get around having to check the error codes of every single function that you call? It would be nice if they threw exceptions. Anyways, I''m creating an template for a generic Win32 OpenGL enabled program and want to have an extreme level of error checking so that i know that whatever application i build on top of it will be as robust as possible. Thanks!

Share this post


Link to post
Share on other sites
Advertisement
glGetError is very cheap.. i call it very often ( until release, since then i know how it will function, i have no user settable things in most of my apps ).. If you have a program that lets the user load textures and objects you can check most ''non per frame'' calls to ensure that the texute is correct or that you dont run out of memory when creating VBO:s or similar.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!