nouveau: nv30: Do not use assert to return NULL

This commit is contained in:
Patrice Mandin 2009-10-21 22:01:03 +02:00
parent cb351bdd6e
commit d364f662c6
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ nv30_fragtex_build(struct nv30_context *nv30, int unit)
tf = nv30_fragtex_format(pt->format);
if (!tf)
assert(0);
return NULL;
txf = tf->format;
txf |= ((pt->last_level>0) ? NV34TCL_TX_FORMAT_MIPMAP : 0);