summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/nouveau/nv20_state_fb.c
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2010-03-07 14:20:31 +0100
committerFrancisco Jerez <currojerez@riseup.net>2010-03-07 22:40:09 +0100
commit5befb6f810fb88ed1e51ec26b79b647cd15b1433 (patch)
tree561f5ce3b5d1427848b30047fc7e2136d76801cf /src/mesa/drivers/dri/nouveau/nv20_state_fb.c
parentba196a8318af6217fece3777ea038539fea4b415 (diff)
dri/nouveau: Check _ColorDrawBuffers[0] before emitting fb state.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv20_state_fb.c')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv20_state_fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv20_state_fb.c b/src/mesa/drivers/dri/nouveau/nv20_state_fb.c
index 869acd6e31..d638541df9 100644
--- a/src/mesa/drivers/dri/nouveau/nv20_state_fb.c
+++ b/src/mesa/drivers/dri/nouveau/nv20_state_fb.c
@@ -67,7 +67,7 @@ nv20_emit_framebuffer(GLcontext *ctx, int emit)
return;
/* Render target */
- if (fb->_NumColorDrawBuffers) {
+ if (fb->_ColorDrawBuffers[0]) {
s = &to_nouveau_renderbuffer(
fb->_ColorDrawBuffers[0])->surface;