summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/formats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index 08efde53ec..fcc8526c40 100644
--- a/src/mesa/main/formats.c
+++ b/src/mesa/main/formats.c
@@ -1534,7 +1534,7 @@ _mesa_format_to_type_and_comps(gl_format format,
case MESA_FORMAT_NONE:
case MESA_FORMAT_COUNT:
/* For debug builds, warn if any formats are not handled */
-#ifndef DEBUG
+#ifdef DEBUG
default:
#endif
_mesa_problem(NULL, "bad format %s in _mesa_format_to_type_and_comps",