summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/errors.c
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-11-26 00:36:14 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2015-12-03 19:21:07 +0000
commit53be28107b44200a59c678c5d2234efeb48d0b35 (patch)
tree0df37d4294707bdd6500878cfc7358d0ed5da308 /src/mesa/main/errors.c
parent078dd6a0b4135b5181eea538473fe53a9bc61223 (diff)
downloadexternal_mesa3d-53be28107b44200a59c678c5d2234efeb48d0b35.zip
external_mesa3d-53be28107b44200a59c678c5d2234efeb48d0b35.tar.gz
external_mesa3d-53be28107b44200a59c678c5d2234efeb48d0b35.tar.bz2
mesa: add SEVERITY_NOTIFICATION to default state
As per the spec quote: "All messages are initially enabled unless their assigned severity is DEBUG_SEVERITY_LOW" We already had MEDIUM and HIGH set, let's toggle NOTIFICATION as well. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Diffstat (limited to 'src/mesa/main/errors.c')
-rw-r--r--src/mesa/main/errors.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c
index fda5a90..a247000 100644
--- a/src/mesa/main/errors.c
+++ b/src/mesa/main/errors.c
@@ -243,8 +243,9 @@ debug_namespace_init(struct gl_debug_namespace *ns)
make_empty_list(&ns->Elements);
/* Enable all the messages with severity HIGH or MEDIUM by default */
- ns->DefaultState = (1 << MESA_DEBUG_SEVERITY_HIGH) |
- (1 << MESA_DEBUG_SEVERITY_MEDIUM);
+ ns->DefaultState = (1 << MESA_DEBUG_SEVERITY_MEDIUM ) |
+ (1 << MESA_DEBUG_SEVERITY_HIGH) |
+ (1 << MESA_DEBUG_SEVERITY_NOTIFICATION);
}
static void