diff --git a/vsgvr/src/vsgvr/app/Viewer.cpp b/vsgvr/src/vsgvr/app/Viewer.cpp index 60390e0..0cb2b58 100644 --- a/vsgvr/src/vsgvr/app/Viewer.cpp +++ b/vsgvr/src/vsgvr/app/Viewer.cpp @@ -128,12 +128,20 @@ namespace vsgvr if (!_frameStamp) { // first frame, initialize to frame count and indices to 0 +#if VSG_VERSION_MAJOR >= 1 && VSG_VERSION_MINOR >= 1 + _frameStamp = vsg::FrameStamp::create(t, 0, 0); +#else _frameStamp = vsg::FrameStamp::create(t, 0); +#endif } else { // after first frame so increment frame count and indices +#if VSG_VERSION_MAJOR >= 1 && VSG_VERSION_MINOR >= 1 + _frameStamp = vsg::FrameStamp::create(t, _frameStamp->frameCount + 1, 0); +#else _frameStamp = vsg::FrameStamp::create(t, _frameStamp->frameCount + 1); +#endif } for (auto& layer : compositionLayers)