Merge branch 'mesa_7_5_branch'
authorBrian Paul <brianp@vmware.com>
Mon, 11 May 2009 22:27:50 +0000 (16:27 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 11 May 2009 22:27:50 +0000 (16:27 -0600)
Conflicts:

Makefile
src/mesa/main/version.h

1  2 
Makefile
src/mesa/state_tracker/st_atom_framebuffer.c

diff --cc Makefile
Simple merge
index f23186c73de01301ea5aeb55172e55a1b85949dd,536293683e9c2e2d0ad3db83f02809dafb1e6c56..4d897b677e0a3cc0abc0927cbc9978e3fc6c13eb
@@@ -120,13 -118,19 +118,20 @@@ update_framebuffer_state( struct st_con
           }
  
           if (strb->surface) {
-             framebuffer->cbufs[framebuffer->nr_cbufs] = strb->surface;
+             pipe_surface_reference(&framebuffer->cbufs[framebuffer->nr_cbufs],
+                                    strb->surface);
              framebuffer->nr_cbufs++;
           }
 +         strb->defined = GL_TRUE; /* we'll be drawing something */
        }
     }
+    for (i = framebuffer->nr_cbufs; i < PIPE_MAX_COLOR_BUFS; i++) {
+       pipe_surface_reference(&framebuffer->cbufs[i], NULL);
+    }
  
+    /*
+     * Depth/Stencil renderbuffer/surface.
+     */
     strb = st_renderbuffer(fb->Attachment[BUFFER_DEPTH].Renderbuffer);
     if (strb) {
        strb = st_renderbuffer(strb->Base.Wrapped);