gallium: do something sensible on the error path to try to avoid crashing in release builds

This commit is contained in:
Keith Whitwell
2008-05-01 14:19:25 +01:00
parent e97bedb302
commit 35b0efb8c6
@@ -505,6 +505,9 @@ format_to_type_comps(enum pipe_format pformat,
return;
default:
assert(0);
*datatype = UBYTE;
*comps = 0;
break;
}
}