summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-12-23 11:32:16 -0800
committerVinson Lee <vlee@vmware.com>2010-12-23 11:32:16 -0800
commit280750c5cabfc5f312c3abe0424f57b2edeb53df (patch)
tree6dd988511e688d329e356947d526cc8c00b07509 /src
parentaedbf05d31c1a8d7d3c2742524abf2db2422b2fe (diff)
mesa: Fix #ifdef typo in _mesa_format_to_type_and_comps.
According to the comment, the warning should be for debug builds.
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",