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 /platform/default/glfw_view.cpp | |
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 'platform/default/glfw_view.cpp')
-rw-r--r-- | platform/default/glfw_view.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index 8453845d1e..19f3379947 100644 --- a/platform/default/glfw_view.cpp +++ b/platform/default/glfw_view.cpp @@ -386,7 +386,11 @@ void GLFWView::invalidate() { glfwPostEmptyEvent(); } -void GLFWView::swap() { +void GLFWView::beforeRender() { + // no-op +} + +void GLFWView::afterRender() { glfwSwapBuffers(window); } |