gallium: cleanup the after merge framebuffer update code
authorZack Rusin <zack@tungstengraphics.com>
Sun, 21 Sep 2008 22:32:09 +0000 (18:32 -0400)
committerZack Rusin <zack@tungstengraphics.com>
Sun, 21 Sep 2008 23:19:03 +0000 (19:19 -0400)
adjust it and make it behave like it used to

src/mesa/state_tracker/st_atom_framebuffer.c

index c07ed2944a09d5ed12038d5cf9ed1b187fd97cf0..b4f42c6f93f6a4182e759667d8a9f09462345401 100644 (file)
@@ -144,22 +144,13 @@ update_framebuffer_state( struct st_context *st )
 
    cso_set_framebuffer(st->cso_context, framebuffer);
 
-#if 0
-   if (fb->_ColorDrawBufferMask[0] & BUFFER_BIT_FRONT_LEFT) {
+   if (fb->_ColorDrawBufferIndexes[0] == BUFFER_FRONT_LEFT) {
       if (st->frontbuffer_status == FRONT_STATUS_COPY_OF_BACK) {
          /* XXX copy back buf to front? */
       }
       /* we're assuming we'll really draw to the front buffer */
       st->frontbuffer_status = FRONT_STATUS_DIRTY;
    }
-#else
-#if !defined(PIPE_OS_WINDOWS)
-#warning "fix me"
-#endif
-   if (fb->_ColorDrawBufferIndexes[0] == BUFFER_FRONT_LEFT) {
-      st->frontbuffer_status = FRONT_STATUS_DIRTY;
-   }
-#endif
 }