Use glfwGetFramebufferSize.