summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2017-03-28 15:11:43 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2017-06-08 16:31:31 +0300
commit66c2a2a0b7c42e1947f57a412ece66fa8eaac149 (patch)
treee64c8df71503040901a64267bd42fd316de7c8eb
parent37870b69aed4d8e013da126f56f8d0c29a1c2692 (diff)
downloadqtlocation-mapboxgl-66c2a2a0b7c42e1947f57a412ece66fa8eaac149.tar.gz
[glfw] Assume implicit backend in GLFWView::onFramebufferResize
-rw-r--r--platform/glfw/glfw_view.cpp2
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