From: Keith Whitwell Date: Thu, 1 May 2008 13:19:25 +0000 (+0100) Subject: gallium: do something sensible on the error path to try to avoid crashing in release... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35b0efb8c6afd319ae36e99aa578ac6c75faf2f5;p=mesa.git gallium: do something sensible on the error path to try to avoid crashing in release builds --- diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c index 0348629ab82..2e8417ee134 100644 --- a/src/gallium/auxiliary/util/u_gen_mipmap.c +++ b/src/gallium/auxiliary/util/u_gen_mipmap.c @@ -505,6 +505,9 @@ format_to_type_comps(enum pipe_format pformat, return; default: assert(0); + *datatype = UBYTE; + *comps = 0; + break; } }