Correctly call resize with width and height. Fixes #746

This commit is contained in:
Leith Bade
2015-01-12 13:30:40 +11:00
parent 166a3e21fa
commit 6aee86d5ff

View File

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