diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-28 15:11:43 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-06-08 16:31:31 +0300 |
commit | 66c2a2a0b7c42e1947f57a412ece66fa8eaac149 (patch) | |
tree | e64c8df71503040901a64267bd42fd316de7c8eb /platform/glfw | |
parent | 37870b69aed4d8e013da126f56f8d0c29a1c2692 (diff) | |
download | qtlocation-mapboxgl-66c2a2a0b7c42e1947f57a412ece66fa8eaac149.tar.gz |
[glfw] Assume implicit backend in GLFWView::onFramebufferResize
Diffstat (limited to 'platform/glfw')
-rw-r--r-- | platform/glfw/glfw_view.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/glfw/glfw_view.cpp b/platform/glfw/glfw_view.cpp index 29cd0dd7c3..c5d36a5555 100644 --- a/platform/glfw/glfw_view.cpp +++ b/platform/glfw/glfw_view.cpp @@ -377,6 +377,8 @@ void GLFWView::onFramebufferResize(GLFWwindow *window, int width, int height) { auto *view = reinterpret_cast<GLFWView *>(glfwGetWindowUserPointer(window)); view->fbWidth = width; view->fbHeight = height; + + mbgl::BackendScope scope { *view, mbgl::BackendScope::ScopeType::Implicit }; view->bind(); // This is only triggered when the framebuffer is resized, but not the window. It can |