diff --git a/openVulkanoCpp/Scene/Geometry.hpp b/openVulkanoCpp/Scene/Geometry.hpp index df2d101..c5c1159 100644 --- a/openVulkanoCpp/Scene/Geometry.hpp +++ b/openVulkanoCpp/Scene/Geometry.hpp @@ -30,8 +30,10 @@ namespace OpenVulkano Vertex* vertices = nullptr; void* indices = nullptr; VertexIndexType indexType = VertexIndexType::UINT16; - bool ownsMemory = true, freeAfterUpload = true; + // handle freeAfterUpload better. we can't free this memory if object is hittable + bool ownsMemory = true, freeAfterUpload = false; Math::AABB aabb; + std::string name; public: Geometry() = default; Geometry(const Geometry& other);