Lots of progress on rendering textures.
This commit is contained in:
@@ -21,8 +21,8 @@ namespace SlatedGameToolkit.Framework.Exceptions
|
||||
/// </summary>
|
||||
public static void CheckGLErrorStatus() {
|
||||
uint errorCode = WindowContextsManager.CurrentWindowContext.GetGLStatus();
|
||||
if (errorCode != (uint) GLEnums.GL_NO_ERROR) {
|
||||
throw new OpenGLErrorException(errorCode, "OpenGL error: " + errorCode.ToString());
|
||||
if (errorCode != (uint) GLEnum.GL_NO_ERROR) {
|
||||
throw new OpenGLErrorException(errorCode, string.Format("OpenGL error ({0}): {1}", errorCode, ((GLEnum) errorCode)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user