diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-06-02 12:51:56 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-06-02 12:51:56 +0000 |
commit | 21fbdb14e9a189272fd7398be525e087dbf017dc (patch) | |
tree | a82e1c520c4c01e12887276d7f557355e4f97e61 /src/mesa/main/buffers.c | |
parent | 79d8db77b970de8d16ffabf8cae53c3a36da5fa0 (diff) |
set per-context GL_DRAW_BUFFER state regardless of currently bound FBO
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 28fbc34ff7..6f4a51e107 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -460,16 +460,14 @@ set_color_output(GLcontext *ctx, GLuint output, GLenum buffer, ASSERT(output < ctx->Const.MaxDrawBuffers); + /* Set per-FBO state */ fb->ColorDrawBuffer[output] = buffer; fb->_ColorDrawBufferMask[output] = destMask; - - if (fb->Name == 0) { - /* Set traditional state var */ - ctx->Color.DrawBuffer[output] = buffer; - } - /* not really needed, will be set later */ fb->_NumColorDrawBuffers[output] = 0; + + /* Set traditional state var */ + ctx->Color.DrawBuffer[output] = buffer; } |