http://bugs.freedesktop.org/show_bug.cgi?id=14198





--- Comment #1 from Shuang He <[EMAIL PROTECTED]>  2008-01-22 17:26:47 PST ---
seems when draw buffer is set to GL_NONE, _NumColorDrawBuffers will be set to
0, so 
_ColorDrawBuffers will not be updated accordingly, in
update_color_draw_buffers()
this patch works for me:

--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -640,6 +640,10 @@ static void
 update_color_draw_buffers(GLcontext *ctx, struct gl_framebuffer *fb)
 {
    GLuint output;
+   if (fb->_NumColorDrawBuffers == 0) {
+      fb->_ColorDrawBuffers[0] = NULL;
+      return;
+   }

    for (output = 0; output < fb->_NumColorDrawBuffers; output++) {
       GLint buf = fb->_ColorDrawBufferIndexes[output];


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to