dwmkerr / sharpgl

Use OpenGL in .NET applications. SharpGL wraps all modern OpenGL features and offers a powerful scene graph to aid development.
MIT License
759 stars 299 forks source link

refactor: Remove automated error checking in debug mode #181

Open dwmkerr opened 4 years ago

dwmkerr commented 4 years ago

Originally noted in PR #177.

We currently have conditional code to check for errors after OpenGL function calls in debug mode. This is a sloppy anti-pattern. Really, checking for errors should be a consumer responsibility; the core wrapper library should not be adding logic - particularly logic which only works in Debug mode.

This code should just be removed.