These are chat archives for opentk/opentk

Jul 2016
Alexander Klingenbeck
Jul 14 2016 06:49
To clear up on my question from yesterday: OpenTK does indeed call GL.GetError for you, as long as you build with debug profile: ErrorHelper.cs
    // Used in debug-mode only, for automatic OpenGL error-checking.
    // Works like this: an instance is created before each OpenGL function is called.
    // The constructor resets the OpenGL error state. Once the native function returns,
    // the error state is checked again, raising the relevant exceptions.
    // A using-region is used to ensure Dispose() is called.
    // Make sure that no error checking is added to the GetError function,
    // as that would cause infinite recursion!