translate_generic: return NULL instead of assert(0) if format not supported
authorLuca Barbieri <luca@luca-barbieri.com>
Wed, 11 Aug 2010 13:59:43 +0000 (15:59 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Wed, 11 Aug 2010 14:27:57 +0000 (16:27 +0200)
commit16b45ca7cefb3432b4133fe9d0b1dbfe3f286131
tree5bbdd946fbba56a2787d256335500849947c8056
parentdeb809ec98664257ed215e75554e1a80c149c851
translate_generic: return NULL instead of assert(0) if format not supported

This gives the caller a chance to recover (or crash anyway otherwise).
src/gallium/auxiliary/translate/translate_generic.c