summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/buffers.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-16 16:49:35 +0100
committerBrian <[email protected]>2007-08-16 16:49:35 +0100
commitc033ccc36d08c669dcdfbfc1cf89e472e8211c5f (patch)
tree3332b7f6e21f1446f0089d8e1c90df3c7ec2b556 /src/mesa/main/buffers.c
parentc5a5d12743b4921ab9c01ee69fa6a06b6b4d716a (diff)
update comments, etc related to Read/DrawBuffer state
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r--src/mesa/main/buffers.c7
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;
+ }
}