Skip to content

Commit 1bcb172

Browse files
committed
Adjust to use vsg version 1.1.3 api
1 parent 340faa0 commit 1bcb172

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vsgvr/src/vsgvr/app/CompositionLayer.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,20 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2929
#include <vsgvr/xr/Session.h>
3030
#include <vsgvr/xr/GraphicsBindingVulkan.h>
3131

32+
#include <vsg/core/Version.h>
33+
// see https://github.com/vsg-dev/VulkanSceneGraph/issues/1184
34+
#define VSG_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch))
35+
#define VSG_VERSION VSG_VERSION_CHECK(VSG_VERSION_MAJOR, VSG_VERSION_MINOR, VSG_VERSION_PATCH)
36+
3237
#include <vsg/app/View.h>
3338
#include <vsg/app/RenderGraph.h>
3439
#include <vsg/commands/PipelineBarrier.h>
40+
41+
#if VSG_VERSION >= VSG_VERSION_CHECK(1, 1, 3)
42+
#include <vsg/lighting/Light.h>
43+
#else
3544
#include <vsg/nodes/Light.h>
45+
#endif
3646
#include <vsg/ui/FrameStamp.h>
3747
#include <vsg/vk/SubmitCommands.h>
3848

0 commit comments

Comments
 (0)