That happens because now in OS X the window and the display framebuffer can be of different sizes.
I'll code it up more cleanly later, but a quick fix specific to OS X is to apply the following one-line changes:
diff --git a/openvdb/viewer/Camera.cc b/openvdb/viewer/Camera.cc
index 40cd61d..66e03db 100644
--- a/openvdb/viewer/Camera.cc
+++ b/openvdb/viewer/Camera.cc
@@ -129,7 +129,8 @@ Camera::aim()
#if GLFW_VERSION_MAJOR >= 3
- glfwGetWindowSize(mWindow, &width, &height);
+ glfwGetFramebufferSize(mWindow, &width, &height);
glfwGetWindowSize(&width, &height);
diff --git a/openvdb/viewer/Viewer.cc b/openvdb/viewer/Viewer.cc
index 140ee90..1eeade9 100644
--- a/openvdb/viewer/Viewer.cc
+++ b/openvdb/viewer/Viewer.cc
@@ -812,7 +813,8 @@ ViewerImpl::render()
#if GLFW_VERSION_MAJOR >= 3
- glfwGetWindowSize(mWindow, &width, &height);
+ glfwGetFramebufferSize(mWindow, &width, &height);
glfwGetWindowSize(&width, &height);