From 90f1677fe6b6a016d38e89d1ebb23ce255f17b74 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Sun, 21 Sep 2008 00:20:38 -0400 Subject: gallium: fix a fbo crash don't dirty the fb if we're rebining the frontbuffer --- src/mesa/state_tracker/st_atom_framebuffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mesa/state_tracker') 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 } -- cgit v1.2.3