diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2015-08-20 16:11:32 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2015-08-25 14:39:49 -0400 |
commit | 4540c3c0e8c80de4f0074c1c4328840ebf708470 (patch) | |
tree | ed131f161734d494655b05fe65b20c44d15f6daa /src | |
parent | 15a5532d76c387142db60913c4ce0876d4450eb8 (diff) | |
download | qtlocation-mapboxgl-4540c3c0e8c80de4f0074c1c4328840ebf708470.tar.gz |
View::swap -> View::beforeRender View::afterRender
To be able to resize the framebuffer on the map thread
in HeadlessView.
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/map/map_context.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index 19e8d02ece..175f987195 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -326,6 +326,8 @@ bool MapContext::renderSync(const TransformState& state, const FrameData& frame) return false; } + view.beforeRender(); + transformState = state; // Cleanup OpenGL objects that we abandoned since the last render call. @@ -345,7 +347,7 @@ bool MapContext::renderSync(const TransformState& state, const FrameData& frame) callback = nullptr; } - view.swap(); + view.afterRender(); viewInvalidated = false; data.setNeedsRepaint(style->hasTransitions() || painter->needsAnimation()); |