Mesa (gallium-0.2): gallium: fix a fbo crash
Zack Rusin
zack at kemper.freedesktop.org
Sun Sep 21 23:26:09 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: 90f1677fe6b6a016d38e89d1ebb23ce255f17b74
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=90f1677fe6b6a016d38e89d1ebb23ce255f17b74
Author: Zack Rusin <zack at tungstengraphics.com>
Date: Sun Sep 21 00:20:38 2008 -0400
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 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 d07fd25..c07ed29 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
}
More information about the mesa-commit
mailing list