mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
fix bug 13978: glDrawBuffersARB() didn't set all necessary state
This commit is contained in:
parent
c0fd6a0903
commit
8c4806ccc4
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue