modetest: Do no flip twice to a current front buffer
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 17 Feb 2011 19:36:42 +0000 (20:36 +0100)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Thu, 17 Feb 2011 19:40:30 +0000 (20:40 +0100)
The incorrect order was:
fb, other_fb, other_fb, fb_id, other_fb, ..

tests/modetest/modetest.c

index 6a40820..bd0f0a0 100644 (file)
@@ -614,7 +614,7 @@ set_mode(struct connector *c, int count, int page_flip)
                c[i].swap_count = 0;
                c[i].fb_id[0] = fb_id;
                c[i].fb_id[1] = other_fb_id;
-               c[i].current_fb_id = fb_id;
+               c[i].current_fb_id = other_fb_id;
        }
 
        memset(&evctx, 0, sizeof evctx);