OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79d8db7
)
set per-context GL_DRAW_BUFFER state regardless of currently bound FBO
author
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 2 Jun 2006 12:51:56 +0000
(12:51 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Fri, 2 Jun 2006 12:51:56 +0000
(12:51 +0000)
src/mesa/main/buffers.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/buffers.c
b/src/mesa/main/buffers.c
index
28fbc34
..
6f4a51e
100644
(file)
--- 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;
}