Fix window resizes.

The memcmp is insufficient for eliminating redundant framebuffer state changes.
This commit is contained in:
Michel Dänzer
2007-09-19 20:03:08 +01:00
parent 617b39ce98
commit c9a5ef1a1c
+4 -1
View File
@@ -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 );
}