gallium: fix a fbo crash
authorZack Rusin <zack@tungstengraphics.com>
Sun, 21 Sep 2008 04:20:38 +0000 (00:20 -0400)
committerZack Rusin <zack@tungstengraphics.com>
Sun, 21 Sep 2008 23:19:03 +0000 (19:19 -0400)
don't dirty the fb if we're rebining the frontbuffer

src/mesa/state_tracker/st_atom_framebuffer.c

index d07fd2517a7804ef17ba7ee590a3c5b76e74d35b..c07ed2944a09d5ed12038d5cf9ed1b187fd97cf0 100644 (file)
@@ -156,7 +156,9 @@ update_framebuffer_state( struct st_context *st )
 #if !defined(PIPE_OS_WINDOWS)
 #warning "fix me"
 #endif
-   st->frontbuffer_status = FRONT_STATUS_DIRTY;
+   if (fb->_ColorDrawBufferIndexes[0] == BUFFER_FRONT_LEFT) {
+      st->frontbuffer_status = FRONT_STATUS_DIRTY;
+   }
 #endif
 }