diff options
author | Patrice Mandin <patmandin@gmail.com> | 2009-10-21 21:56:09 +0200 |
---|---|---|
committer | Patrice Mandin <patmandin@gmail.com> | 2009-10-21 21:56:09 +0200 |
commit | cb351bdd6e09b40fe719c548c48ea40c6c4c3d11 (patch) | |
tree | a856c15afe56e3a964d46fcfa4d868d45a722a58 /src/gallium/drivers | |
parent | ce98860012b10cc6cc124fd1ed6fa3a5e28712bb (diff) |
nouveau: nv30: check number of colour buffers to bind
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/nv30/nv30_state_fb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_state_fb.c b/src/gallium/drivers/nv30/nv30_state_fb.c index 9b0266fba5..197de82886 100644 --- a/src/gallium/drivers/nv30/nv30_state_fb.c +++ b/src/gallium/drivers/nv30/nv30_state_fb.c @@ -17,6 +17,10 @@ nv30_state_framebuffer_validate(struct nv30_context *nv30) struct nv30_miptree *nv30mt; int colour_bits = 32, zeta_bits = 32; + if (fb->nr_cbufs == 0) { + return FALSE; + } + rt_enable = 0; for (i = 0; i < fb->nr_cbufs; i++) { if (colour_format) { |