Merge pull request #1097 from bunnei/gl-critical

renderer_opengl: Treat OpenGL errors as critical.
This commit is contained in:
bunnei 2018-08-17 10:39:13 -04:00 committed by GitHub
commit 804aebf7c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -425,7 +425,7 @@ static void APIENTRY DebugHandler(GLenum source, GLenum type, GLuint id, GLenum
switch (severity) { switch (severity) {
case GL_DEBUG_SEVERITY_HIGH: case GL_DEBUG_SEVERITY_HIGH:
LOG_ERROR(Render_OpenGL, format, str_source, str_type, id, message); LOG_CRITICAL(Render_OpenGL, format, str_source, str_type, id, message);
break; break;
case GL_DEBUG_SEVERITY_MEDIUM: case GL_DEBUG_SEVERITY_MEDIUM:
LOG_WARNING(Render_OpenGL, format, str_source, str_type, id, message); LOG_WARNING(Render_OpenGL, format, str_source, str_type, id, message);