diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-09-19 20:03:08 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-09-19 20:40:09 +0100 |
commit | c9a5ef1a1cdee94fe091cb65ea34e9a9bb8b2190 (patch) | |
tree | 9201d86df63fa5218a9093e205e9be4c94ee3eb9 /src | |
parent | 617b39ce9811b0998ceb746c935cc50cacf8a9bc (diff) |
Fix window resizes.
The memcmp is insufficient for eliminating redundant framebuffer state changes.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_atom_framebuffer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c index 3c4b37e7c5..ccbeacfd6e 100644 --- a/src/mesa/state_tracker/st_atom_framebuffer.c +++ b/src/mesa/state_tracker/st_atom_framebuffer.c @@ -74,7 +74,10 @@ update_framebuffer_state( struct st_context *st ) framebuffer.sbuf = strb->surface; } - if (memcmp(&framebuffer, &st->state.framebuffer, sizeof(framebuffer)) != 0) { + /* XXX: The memcmp is insufficient for eliminating redundant state changes, + * but we should probably do more work here to that end. + */ + if (1 /*memcmp(&framebuffer, &st->state.framebuffer, sizeof(framebuffer)) != 0*/) { st->state.framebuffer = framebuffer; st->pipe->set_framebuffer_state( st->pipe, &framebuffer ); } |