diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-08-18 18:02:46 -0400 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2015-08-19 04:54:07 -0400 |
commit | fa18f1afd0f2c736e09ffc8989548fdc0bafdf3c (patch) | |
tree | 50120af7e1c1d730c2f73113ebd35ab846e2f909 | |
parent | 4dd16a7e7f76321a611c0ab5e498b18e5b4f8ebc (diff) | |
download | qtlocation-mapboxgl-fa18f1afd0f2c736e09ffc8989548fdc0bafdf3c.tar.gz |
Trigger a view invalidation upon resume
Causes view to repaint when returning from pause state, fixing the black
screen perceived in some scenarios.
Fixes #2071.
-rw-r--r-- | src/mbgl/map/map_context.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index bbcfa37b46..a8dd86284f 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -74,6 +74,8 @@ void MapContext::cleanup() { void MapContext::pause() { MBGL_CHECK_ERROR(glFinish()); + viewInvalidated = false; + view.deactivate(); std::unique_lock<std::mutex> lockPause(data.mutexPause); @@ -81,6 +83,8 @@ void MapContext::pause() { data.condResume.wait(lockPause); view.activate(); + + invalidateView(); } void MapContext::triggerUpdate(const TransformState& state, const Update flags) { |