From 66c2a2a0b7c42e1947f57a412ece66fa8eaac149 Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Tue, 28 Mar 2017 15:11:43 +0200 Subject: [glfw] Assume implicit backend in GLFWView::onFramebufferResize --- platform/glfw/glfw_view.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(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 -- cgit v1.2.1