projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb351bd
)
nouveau: nv30: Do not use assert to return NULL
author
Patrice Mandin
<patmandin@gmail.com>
Wed, 21 Oct 2009 20:01:03 +0000
(22:01 +0200)
committer
Patrice Mandin
<patmandin@gmail.com>
Wed, 21 Oct 2009 20:01:03 +0000
(22:01 +0200)
src/gallium/drivers/nv30/nv30_fragtex.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nv30/nv30_fragtex.c
b/src/gallium/drivers/nv30/nv30_fragtex.c
index 822e1d8defe7c42b0f1dcdceb6737d306cf62131..a2ce947a72aec320c350b4ac9d29a79158d9df52 100644
(file)
--- 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);