···20722072 * For direct mode this makes us wait until the last frame has been
20732073 * actually shown to the user, this avoids us missing that we have
20742074 * missed a frame and miss-predicting the next frame.
20752075+ *
20762076+ * Only do this if we are ready.
20752077 */
20762076- renderer_acquire_swapchain_image(r);
20782078+ if (comp_target_check_ready(r->c->target)) {
20792079+ renderer_acquire_swapchain_image(r);
20802080+ }
2077208120782082 comp_target_update_timings(ct);
20792083}