From 4d19a6acd9ddf790c1080bdda9dfdde0359392ff Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 20 May 2024 11:30:45 +0100 Subject: [PATCH] Updated to work with changes to ArrayState in VSG-1.1.4 --- CMakeLists.txt | 4 ++-- applications/vsgpoints_example/ConvertMeshToPoints.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bd3eb5..fd3cf1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12) project(vsgPoints - VERSION 0.3.0 + VERSION 0.4.0 DESCRIPTION "VulkanSceneGraph Point Cloud rendering." LANGUAGES CXX ) @@ -19,7 +19,7 @@ if (VULKAN_SDK) set(ENV{VULKAN_SDK} ${VULKAN_SDK}) endif() -find_package(vsg 1.1.0 REQUIRED) +find_package(vsg 1.1.4 REQUIRED) find_package(vsgXchange 1.0.5 REQUIRED) vsg_setup_build_vars() diff --git a/applications/vsgpoints_example/ConvertMeshToPoints.cpp b/applications/vsgpoints_example/ConvertMeshToPoints.cpp index bbf05d4..afbb89c 100644 --- a/applications/vsgpoints_example/ConvertMeshToPoints.cpp +++ b/applications/vsgpoints_example/ConvertMeshToPoints.cpp @@ -77,7 +77,7 @@ void ConvertMeshToPoints::apply(const vsg::Node& node) void ConvertMeshToPoints::apply(const vsg::StateGroup& stategroup) { - auto arrayState = stategroup.prototypeArrayState ? stategroup.prototypeArrayState->clone(arrayStateStack.back()) : arrayStateStack.back()->clone(); + auto arrayState = stategroup.prototypeArrayState ? stategroup.prototypeArrayState->cloneArrayState(arrayStateStack.back()) : arrayStateStack.back()->cloneArrayState(); for (auto& statecommand : stategroup.stateCommands) {