summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/kms_flip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 8bba1218..c1ff2e02 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -853,7 +853,7 @@ static int set_mode(struct test_output *o, uint32_t fb, int x, int y)
{
int n;
- for (n = 0; n < o->count; n++) {
+ for (n = o->count - 1; n >= 0; n--) {
if (fb == 0) {
int ret = drmModeSetCrtc(drm_fd, o->_crtc[n],
0, 0, 0,