diff --git a/include/Nazara/Utility/VertexMapper.hpp b/include/Nazara/Utility/VertexMapper.hpp index 4b76aa9ca..533a1e9c1 100644 --- a/include/Nazara/Utility/VertexMapper.hpp +++ b/include/Nazara/Utility/VertexMapper.hpp @@ -13,7 +13,6 @@ #include class NzSubMesh; -class NzVertexBuffer; class NzVertexMapperImpl; @@ -34,6 +33,8 @@ class NAZARA_API NzVertexMapper void SetTangent(unsigned int i, const NzVector3f& tangent); void SetTexCoords(unsigned int i, const NzVector2f& texCoords); + void Unmap(); + private: NzVertexMapperImpl* m_impl; }; diff --git a/src/Nazara/Utility/VertexMapper.cpp b/src/Nazara/Utility/VertexMapper.cpp index 36ccf9915..e0504b764 100644 --- a/src/Nazara/Utility/VertexMapper.cpp +++ b/src/Nazara/Utility/VertexMapper.cpp @@ -323,3 +323,9 @@ void NzVertexMapper::SetTexCoords(unsigned int i, const NzVector2f& texCoords) { m_impl->SetTexCoords(i, texCoords); } + +void NzVertexMapper::Unmap() +{ + delete m_impl; + m_impl = nullptr; +}