summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorPatrice Mandin <patmandin@gmail.com>2009-10-21 22:01:03 +0200
committerPatrice Mandin <patmandin@gmail.com>2009-10-21 22:01:03 +0200
commitd364f662c685ba0f28aa865fbd7e1f0acc3c469e (patch)
tree6d53e2d1ff9f7c65bc729d75799403b459e83342 /src/gallium
parentcb351bdd6e09b40fe719c548c48ea40c6c4c3d11 (diff)
nouveau: nv30: Do not use assert to return NULL
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nv30/nv30_fragtex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv30/nv30_fragtex.c b/src/gallium/drivers/nv30/nv30_fragtex.c
index 822e1d8def..a2ce947a72 100644
--- a/src/gallium/drivers/nv30/nv30_fragtex.c
+++ b/src/gallium/drivers/nv30/nv30_fragtex.c
@@ -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);