Skip to content

Commit

Permalink
Fix api change of vsg::FrameStamp::create()
Browse files Browse the repository at this point in the history
Fix #53
  • Loading branch information
rhabacker committed Mar 20, 2024
1 parent 20d5349 commit aead073
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vsgvr/src/vsgvr/app/Viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aead073

Please sign in to comment.