Cleanup: remove redundant double parenthesis
This commit is contained in:
@@ -80,7 +80,7 @@ static void APIENTRY debug_callback(GLenum UNUSED(source),
|
||||
const bool use_color = CLG_color_support_get(&LOG);
|
||||
|
||||
if (ELEM(severity, GL_DEBUG_SEVERITY_LOW, GL_DEBUG_SEVERITY_NOTIFICATION)) {
|
||||
if (((LOG.type->flag & CLG_FLAG_USE) && (LOG.type->level >= CLG_SEVERITY_INFO))) {
|
||||
if ((LOG.type->flag & CLG_FLAG_USE) && (LOG.type->level >= CLG_SEVERITY_INFO)) {
|
||||
const char *format = use_color ? "\033[2m%s\033[0m" : "%s";
|
||||
CLG_logf(LOG.type, CLG_SEVERITY_INFO, "Notification", "", format, message);
|
||||
}
|
||||
@@ -110,7 +110,7 @@ static void APIENTRY debug_callback(GLenum UNUSED(source),
|
||||
break;
|
||||
}
|
||||
|
||||
if (((LOG.type->flag & CLG_FLAG_USE) && (LOG.type->level <= clog_severity))) {
|
||||
if ((LOG.type->flag & CLG_FLAG_USE) && (LOG.type->level <= clog_severity)) {
|
||||
CLG_logf(LOG.type, clog_severity, debug_groups, "", "%s", message);
|
||||
if (severity == GL_DEBUG_SEVERITY_HIGH) {
|
||||
/* Focus on error message. */
|
||||
|
||||
Reference in New Issue
Block a user