summaryrefslogtreecommitdiff
path: root/platform/glfw/glfw_gl_backend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/glfw/glfw_gl_backend.cpp')
-rw-r--r--platform/glfw/glfw_gl_backend.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/glfw/glfw_gl_backend.cpp b/platform/glfw/glfw_gl_backend.cpp
index 6eb58d4fa6..6af68d83d6 100644
--- a/platform/glfw/glfw_gl_backend.cpp
+++ b/platform/glfw/glfw_gl_backend.cpp
@@ -26,7 +26,8 @@ GLFWGLBackend::GLFWGLBackend(GLFWwindow* window_, const bool capFrameRate)
: mbgl::gl::RendererBackend(mbgl::gfx::ContextMode::Unique),
mbgl::gfx::Renderable(
[window_] {
- int fbWidth, fbHeight;
+ int fbWidth;
+ int fbHeight;
glfwGetFramebufferSize(window_, &fbWidth, &fbHeight);
return mbgl::Size{ static_cast<uint32_t>(fbWidth), static_cast<uint32_t>(fbHeight) };
}(),