diff options
author | Lionel Landwerlin <llandwerlin@gmail.com> | 2015-09-15 00:32:05 +0100 |
---|---|---|
committer | Lionel Landwerlin <llandwerlin@gmail.com> | 2015-09-15 12:29:05 +0100 |
commit | 0e7b18832a6c694fd2443abeecf91fefc47ee76e (patch) | |
tree | 5b39831820aa4a54907f8fafc152f3da08327c57 | |
parent | ff1a5aae7ac374592f1a9f7ff7be6d0a4bd576c2 (diff) | |
download | clutter-0e7b18832a6c694fd2443abeecf91fefc47ee76e.tar.gz |
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
-rw-r--r-- | clutter/cogl/clutter-stage-cogl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clutter/cogl/clutter-stage-cogl.c b/clutter/cogl/clutter-stage-cogl.c index fd51e0765..a94e08243 100644 --- a/clutter/cogl/clutter-stage-cogl.c +++ b/clutter/cogl/clutter-stage-cogl.c @@ -77,6 +77,8 @@ clutter_stage_cogl_unrealize (ClutterStageWindow *stage_window) cogl_object_unref (stage_cogl->onscreen); stage_cogl->onscreen = NULL; } + + stage_cogl->pending_swaps = 0; } static void |