Skip to content

Commit

Permalink
Print GL notifications to system console only
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Nov 13, 2021
1 parent 2598a3f commit 0e84287
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Quake/gl_vidsdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,15 @@ static void APIENTRY GL_DebugCallback (GLenum source, GLenum type, GLuint id, GL
break;
}

Con_SafePrintf ("\x02GL %s %s[#%u/%s]: ", str_source, str_type, id, str_severity);
Con_SafePrintf ("%s\n", message);
if (severity == GL_DEBUG_SEVERITY_NOTIFICATION)
{
Sys_Printf ("GL %s %s[#%u/%s]: %s\n", str_source, str_type, id, str_severity, message);
}
else
{
Con_SafePrintf ("\x02GL %s %s[#%u/%s]: ", str_source, str_type, id, str_severity);
Con_SafePrintf ("%s\n", message);
}
}

/*
Expand Down

0 comments on commit 0e84287

Please sign in to comment.