diff --git a/src/backends/native/meta-onscreen-native.c b/src/backends/native/meta-onscreen-native.c index 8a25fca8c..366d768a5 100644 --- a/src/backends/native/meta-onscreen-native.c +++ b/src/backends/native/meta-onscreen-native.c @@ -1365,9 +1365,6 @@ meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen, primary_gpu_fb, secondary_gpu_fb); - g_warn_if_fail (!onscreen_native->next_frame); - onscreen_native->next_frame = clutter_frame_ref (frame); - switch (renderer_gpu_data->mode) { case META_RENDERER_NATIVE_MODE_GBM: @@ -1392,6 +1389,9 @@ meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen, #endif } + g_warn_if_fail (!onscreen_native->next_frame); + onscreen_native->next_frame = clutter_frame_ref (frame); + /* * If we changed EGL context, cogl will have the wrong idea about what is * current, making it fail to set it when it needs to. Avoid that by making