diff --git a/platform/default/glfw_view.cpp b/platform/default/glfw_view.cpp index 64a33321d5f..8f3eb831d42 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);