Fix some issues with glDrawBuffer(GL_NONE), bug 14198
authorBrian <brian.paul@tungstengraphics.com>
Wed, 23 Jan 2008 04:11:55 +0000 (21:11 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 23 Jan 2008 04:11:55 +0000 (21:11 -0700)
commit2a077500a84819d1e6ac62e84ded130aa655c5e9
treee16cbba8051acc5ee5fc4409e5697e11d0041989
parente1ae5b89fce51ce1138a5cbe93caa0e1fccf219f
Fix some issues with glDrawBuffer(GL_NONE), bug 14198

Set _ColorDrawBuffers[0] = NULL if no renderbuffers enabled.
Check that _ColorDrawBuffers[0] is non-null before dereferencing in a few places.
src/mesa/drivers/x11/xm_dd.c
src/mesa/main/framebuffer.c
src/mesa/swrast/s_blit.c
src/mesa/swrast/s_drawpix.c
src/mesa/swrast/s_triangle.c