diff options
author | Zack Rusin <[email protected]> | 2008-09-21 00:20:38 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2008-09-21 19:19:03 -0400 |
commit | 90f1677fe6b6a016d38e89d1ebb23ce255f17b74 (patch) | |
tree | c1815b033f676e3f6c308c5ae9f9f814a41e995b | |
parent | 3a40dee3eb5151a282ce831b67427f3aa625de28 (diff) |
gallium: fix a fbo crash
don't dirty the fb if we're rebining the frontbuffer
-rw-r--r-- | src/mesa/state_tracker/st_atom_framebuffer.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 } |