summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-03-21 21:17:57 +1100
committerBen Skeggs <[email protected]>2008-03-21 21:18:16 +1100
commitebde8d3a1276f5c72d39936efabe72b5325f8e98 (patch)
treee482aec8a8db1aee6603467039ad6c2c35fad435 /src
parent1a4dcde808dbd5daa58f939361d9a9b539f81b50 (diff)
nv40: use num_cbufs
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nv40/nv40_state_fb.c5
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 107b4400283..93b79377c92 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 {