Fix window resizes.
authorMichel Dänzer <michel@tungstengraphics.com>
Wed, 19 Sep 2007 19:03:08 +0000 (20:03 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Wed, 19 Sep 2007 19:40:09 +0000 (20:40 +0100)
The memcmp is insufficient for eliminating redundant framebuffer state changes.

src/mesa/state_tracker/st_atom_framebuffer.c

index 3c4b37e7c5a3a1eb9fc76d386780fdecfe393ab6..ccbeacfd6e87d4a6b9ba13b49f53315490113c8c 100644 (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 );
    }