Skip to content

Commit 0e84287

Browse files
Print GL notifications to system console only
1 parent 2598a3f commit 0e84287

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Quake/gl_vidsdl.c

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -873,8 +873,15 @@ static void APIENTRY GL_DebugCallback (GLenum source, GLenum type, GLuint id, GL
873873
break;
874874
}
875875

876-
Con_SafePrintf ("\x02GL %s %s[#%u/%s]: ", str_source, str_type, id, str_severity);
877-
Con_SafePrintf ("%s\n", message);
876+
if (severity == GL_DEBUG_SEVERITY_NOTIFICATION)
877+
{
878+
Sys_Printf ("GL %s %s[#%u/%s]: %s\n", str_source, str_type, id, str_severity, message);
879+
}
880+
else
881+
{
882+
Con_SafePrintf ("\x02GL %s %s[#%u/%s]: ", str_source, str_type, id, str_severity);
883+
Con_SafePrintf ("%s\n", message);
884+
}
878885
}
879886

880887
/*

0 commit comments

Comments
 (0)