From: Vinson Lee Date: Thu, 23 Dec 2010 19:32:16 +0000 (-0800) Subject: mesa: Fix #ifdef typo in _mesa_format_to_type_and_comps. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=280750c5cabfc5f312c3abe0424f57b2edeb53df;p=mesa.git mesa: Fix #ifdef typo in _mesa_format_to_type_and_comps. According to the comment, the warning should be for debug builds. --- diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index 08efde53eca..fcc8526c404 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",