psp, fix vsync synchronisation
authorkub <derkub@gmail.com>
Sun, 16 Oct 2022 19:28:52 +0000 (19:28 +0000)
committerkub <derkub@gmail.com>
Sun, 16 Oct 2022 20:17:42 +0000 (20:17 +0000)
platform/psp/psp.c

index 702d665..4e88487 100644 (file)
@@ -198,7 +198,7 @@ void psp_video_flip(int wait_vsync, int other)
        if (other) fb ^= 0x44000;
        //if (wait_vsync) sceDisplayWaitVblankStart();
        sceDisplaySetFrameBuf((void *)fb, 512, PSP_DISPLAY_PIXEL_FORMAT_565,
-               wait_vsync ? PSP_DISPLAY_SETBUF_IMMEDIATE : PSP_DISPLAY_SETBUF_NEXTFRAME);
+               wait_vsync ? PSP_DISPLAY_SETBUF_NEXTFRAME : PSP_DISPLAY_SETBUF_IMMEDIATE);
        current_screen ^= 1;
        psp_screen = current_screen ? VRAM_FB0 : VRAM_FB1;
 }