diff options
author | Brian <[email protected]> | 2007-08-16 16:49:35 +0100 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-16 16:49:35 +0100 |
commit | c033ccc36d08c669dcdfbfc1cf89e472e8211c5f (patch) | |
tree | 3332b7f6e21f1446f0089d8e1c90df3c7ec2b556 /src/mesa/main/buffers.c | |
parent | c5a5d12743b4921ab9c01ee69fa6a06b6b4d716a (diff) |
update comments, etc related to Read/DrawBuffer state
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index 0e6ca8ea1c2..82dd059e4b2 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -479,9 +479,12 @@ set_color_output(GLcontext *ctx, GLuint output, GLenum buffer, /* not really needed, will be set later */ fb->_NumColorDrawBuffers[output] = 0; - if (fb->Name == 0) - /* Set traditional state var */ + if (fb->Name == 0) { + /* Only set the per-context DrawBuffer state if we're currently + * drawing to a window system framebuffer. + */ ctx->Color.DrawBuffer[output] = buffer; + } } |