From: Zack Rusin Date: Sun, 21 Sep 2008 04:20:38 +0000 (-0400) Subject: gallium: fix a fbo crash X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90f1677fe6b6a016d38e89d1ebb23ce255f17b74;p=mesa.git gallium: fix a fbo crash don't dirty the fb if we're rebining the frontbuffer --- diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c index d07fd2517a7..c07ed2944a0 100644 --- a/src/mesa/state_tracker/st_atom_framebuffer.c +++ b/src/mesa/state_tracker/st_atom_framebuffer.c @@ -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 }