diff options
author | Ben Skeggs <skeggsb@gmail.com> | 2008-03-21 21:17:57 +1100 |
---|---|---|
committer | Ben Skeggs <skeggsb@gmail.com> | 2008-03-21 21:18:16 +1100 |
commit | ebde8d3a1276f5c72d39936efabe72b5325f8e98 (patch) | |
tree | e482aec8a8db1aee6603467039ad6c2c35fad435 /src/gallium/drivers/nv40 | |
parent | 1a4dcde808dbd5daa58f939361d9a9b539f81b50 (diff) |
nv40: use num_cbufs
Diffstat (limited to 'src/gallium/drivers/nv40')
-rw-r--r-- | src/gallium/drivers/nv40/nv40_state_fb.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/nv40/nv40_state_fb.c b/src/gallium/drivers/nv40/nv40_state_fb.c index 107b440028..93b79377c9 100644 --- a/src/gallium/drivers/nv40/nv40_state_fb.c +++ b/src/gallium/drivers/nv40/nv40_state_fb.c @@ -13,10 +13,7 @@ nv40_state_framebuffer_validate(struct nv40_context *nv40) unsigned h = fb->height; rt_enable = 0; - for (i = 0; i < 4; i++) { - if (!fb->cbufs[i]) - continue; - + for (i = 0; i < fb->num_cbufs; i++) { if (colour_format) { assert(colour_format == fb->cbufs[i]->format); } else { |