bjornblissing / osgoculusviewer

An OsgViewer with support for the Oculus Rift
Other
106 stars 67 forks source link

Get slave cameras by relative index rather than absolute #104

Closed rickyviking closed 3 years ago

rickyviking commented 3 years ago

so that everything works even if other slave cameras have already been added to the viewer

bjornblissing commented 3 years ago

To make this code thread safe I used the findSlaveForCamera() function to acquire the slave view from the camera pointer instead of using the last index.

Closed by d0d975e66e87921013b43aece7374f2e450a34a1