From 6aee86d5ff3906ee300ff992eb389d2442f063a6 Mon Sep 17 00:00:00 2001 From: Leith Bade Date: Mon, 12 Jan 2015 13:30:40 +1100 Subject: [PATCH] Correctly call resize with width and height. Fixes #746 --- platform/default/glfw_view.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index 64a33321d..8f3eb831d 100644 --- a/platform/default/glfw_view.cpp +++ b/platform/default/glfw_view.cpp @@ -61,10 +61,7 @@ void GLFWView::initialize(mbgl::Map *map_) { int width, height; glfwGetWindowSize(window, &width, &height); - int fbWidth, fbHeight; - glfwGetFramebufferSize(window, &fbWidth, &fbHeight); - - resize(window, 0, 0); + resize(window, width, height); glfwSetCursorPosCallback(window, mouseMove); glfwSetMouseButtonCallback(window, mouseClick);