Skip to content

Commit aead073

Browse files
committed
Fix api change of vsg::FrameStamp::create()
Fix geefr#53
1 parent 20d5349 commit aead073

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vsgvr/src/vsgvr/app/Viewer.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,20 @@ namespace vsgvr
128128
if (!_frameStamp)
129129
{
130130
// first frame, initialize to frame count and indices to 0
131+
#if VSG_VERSION_MAJOR >= 1 && VSG_VERSION_MINOR >= 1
132+
_frameStamp = vsg::FrameStamp::create(t, 0, 0);
133+
#else
131134
_frameStamp = vsg::FrameStamp::create(t, 0);
135+
#endif
132136
}
133137
else
134138
{
135139
// after first frame so increment frame count and indices
140+
#if VSG_VERSION_MAJOR >= 1 && VSG_VERSION_MINOR >= 1
141+
_frameStamp = vsg::FrameStamp::create(t, _frameStamp->frameCount + 1, 0);
142+
#else
136143
_frameStamp = vsg::FrameStamp::create(t, _frameStamp->frameCount + 1);
144+
#endif
137145
}
138146

139147
for (auto& layer : compositionLayers)

0 commit comments

Comments
 (0)