[glfw] Assume implicit backend in GLFWView::onFramebufferResize

This commit is contained in:
Bruno de Oliveira Abinader
2017-03-28 15:11:43 +02:00
parent 37870b69ae
commit 66c2a2a0b7

View File

@@ -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