cogl: reset pending swaps counter on unrealize

When removing the frame callback on the CoglOnscreen, we loose the ability
to get notified of swap events. This could leave us with a counter != 0
which leads to a deadlock situation after the next realize/draw cycle.

https://bugzilla.gnome.org/show_bug.cgi?id=755014
This commit is contained in:
Lionel Landwerlin 2015-09-15 00:32:05 +01:00
parent ff1a5aae7a
commit 0e7b18832a

View File

@ -77,6 +77,8 @@ clutter_stage_cogl_unrealize (ClutterStageWindow *stage_window)
cogl_object_unref (stage_cogl->onscreen); cogl_object_unref (stage_cogl->onscreen);
stage_cogl->onscreen = NULL; stage_cogl->onscreen = NULL;
} }
stage_cogl->pending_swaps = 0;
} }
static void static void