From 280750c5cabfc5f312c3abe0424f57b2edeb53df Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 23 Dec 2010 11:32:16 -0800 Subject: mesa: Fix #ifdef typo in _mesa_format_to_type_and_comps. According to the comment, the warning should be for debug builds. --- src/mesa/main/formats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/main/formats.c') 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", -- cgit v1.2.3