[Mesa-dev] Mesa (master): translate_generic: return NULL instead of assert(0) if format not supported

Roland Scheidegger sroland at vmware.com
Wed Aug 11 09:28:55 PDT 2010


On 11.08.2010 18:20, Luca Barbieri wrote:
>> Assert failures mean something that developers didn't anticipate to
>> happen did happen. But release code should still continue past the
>> assert and do something sensible like ignoring. That is, it should be
>> resilient against the unexpected. At least this is my perspective.
> 
> Note however that this means you will have hard to debug silent
> misrenderings, instead of an easy to debug crash or assert.
Yes, but I think the idea here is "don't try to debug without debug code".
You don't really want the code to crash in nondebug builds.

Roland


More information about the mesa-dev mailing list