summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-11-05 13:16:19 -0700
committerBrian Paul <brianp@vmware.com>2009-11-05 13:17:21 -0700
commitd971069fc6f5dcec64b1f1a60a8a2e7063aaf018 (patch)
treed206918a18275653c47608e29a9654c9e894d037 /src/mesa
parent67034b9efce43a7b83f79e44beb6d4e8f6dff22a (diff)
mesa: fix infinite loop bug in _mesa_drawbuffers()
Fixes bug 24946. This regression came from 8df699b3bb1aa05b633f05b121d09d812c86a22d.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/buffers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c
index e76cf87cb0..7f77c5d772 100644
--- a/src/mesa/main/buffers.c
+++ b/src/mesa/main/buffers.c
@@ -424,9 +424,10 @@ _mesa_drawbuffers(GLcontext *ctx, GLuint n, const GLenum *buffers,
while (buf < ctx->Const.MaxDrawBuffers) {
if (fb->_ColorDrawBufferIndexes[buf] != -1) {
fb->_ColorDrawBufferIndexes[buf] = -1;
- buf++;
+ newState = GL_TRUE;
}
fb->ColorDrawBuffer[buf] = GL_NONE;
+ buf++;
}
fb->_NumColorDrawBuffers = count;
}