mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Display types at different log levels.
Just to make errors stand out more, mainly.
This commit is contained in:
parent
d39c8a5994
commit
cbf149b0b4
1 changed files with 18 additions and 1 deletions
|
@ -133,7 +133,24 @@ void DebugCallbackARB(GLenum source, GLenum type, GLuint id, GLenum severity,
|
|||
char finalMessage[256];
|
||||
FormatDebugOutputARB(finalMessage, 256, source, type, id, severity, message);
|
||||
OutputDebugStringA(finalMessage);
|
||||
NOTICE_LOG(G3D, "GL: %s", finalMessage);
|
||||
|
||||
switch (type) {
|
||||
case GL_DEBUG_TYPE_ERROR_ARB:
|
||||
case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB:
|
||||
case GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB:
|
||||
ERROR_LOG(G3D, "GL: %s", finalMessage);
|
||||
break;
|
||||
|
||||
case GL_DEBUG_TYPE_PORTABILITY_ARB:
|
||||
case GL_DEBUG_TYPE_PERFORMANCE_ARB:
|
||||
NOTICE_LOG(G3D, "GL: %s", finalMessage);
|
||||
break;
|
||||
|
||||
case GL_DEBUG_TYPE_OTHER_ARB:
|
||||
default:
|
||||
INFO_LOG(G3D, "GL: %s", finalMessage);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
bool GL_Init(HWND window, std::string *error_message) {
|
||||
|
|
Loading…
Add table
Reference in a new issue