summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-09 14:19:50 -0700
committerBrian <[email protected]>2008-01-09 14:20:51 -0700
commit8c4806ccc4d24b78fe2a2a7119333b965572e948 (patch)
treeb7851f178fc2117b710e4342a092ca1758cf7ec1 /src/mesa
parentc0fd6a09031a07e7c1dd51d1073f2e37f188757e (diff)
fix bug 13978: glDrawBuffersARB() didn't set all necessary state
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/buffers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c
index 20999772919..b08095465d8 100644
--- a/src/mesa/main/buffers.c
+++ b/src/mesa/main/buffers.c
@@ -540,6 +540,7 @@ _mesa_drawbuffers(GLcontext *ctx, GLuint n, const GLenum *buffers,
for (buf = 0; buf < n; buf++ ) {
if (destMask[buf]) {
fb->_ColorDrawBufferIndexes[buf] = _mesa_ffs(destMask[buf]) - 1;
+ fb->ColorDrawBuffer[buf] = buffers[buf];
count = buf + 1;
}
else {
@@ -549,6 +550,7 @@ _mesa_drawbuffers(GLcontext *ctx, GLuint n, const GLenum *buffers,
/* set remaining outputs to -1 (GL_NONE) */
while (buf < ctx->Const.MaxDrawBuffers) {
fb->_ColorDrawBufferIndexes[buf] = -1;
+ fb->ColorDrawBuffer[buf] = GL_NONE;
buf++;
}
fb->_NumColorDrawBuffers = count;