frontend: fix minor glitches on video mode changes
[pcsx_rearmed.git] / frontend / plat_omap.c
index 4e3ea79..f25f31c 100644 (file)
@@ -111,10 +111,11 @@ void *plat_gvideo_set_mode(int *w_in, int *h_in, int *bpp)
                }
        }
 
-       vout_fbdev_clear(layer_fb);
        buf = vout_fbdev_resize(layer_fb, w, h, *bpp,
                l, r, t, b, 3);
 
+       vout_fbdev_clear(layer_fb);
+
        omap_enable_layer(1);
 
        return buf;