Make OpenGL performance warnings "info", not "warning" category

This commit is contained in:
rdb 2016-02-27 12:03:29 +01:00
parent d9ec4d402a
commit 9f0cd81803
1 changed files with 6 additions and 1 deletions

View File

@ -414,7 +414,12 @@ debug_callback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei l
break;
case GL_DEBUG_SEVERITY_MEDIUM:
level = NS_warning;
if (type == GL_DEBUG_TYPE_PERFORMANCE) {
// Performance warnings should really be "info".
level = NS_info;
} else {
level = NS_warning;
}
break;
case GL_DEBUG_SEVERITY_LOW: