From d92e56460e0b6b6057097fc12c7f947528e58c13 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 11 Jan 2011 09:26:03 -0700 Subject: mesa: do a debug check of _mesa_format_to_type_and_comps() Make sure that all formats are handled in this function. It's easy to miss this function when adding new pixel formats. See also http://bugs.freedesktop.org/show_bug.cgi?id=31544 --- src/mesa/main/context.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/main/context.c') diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 2c57c8d4cb..958ea10a42 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -96,6 +96,7 @@ #include "fbobject.h" #include "feedback.h" #include "fog.h" +#include "formats.h" #include "framebuffer.h" #include "hint.h" #include "hash.h" @@ -417,6 +418,10 @@ one_time_init( struct gl_context *ctx ) MESA_VERSION_STRING, __DATE__, __TIME__); } #endif + +#ifdef DEBUG + _mesa_test_formats(); +#endif } /* per-API one-time init */ -- cgit v1.2.3