fix memory errors realted to cache

This commit is contained in:
arthur.jamet
2021-06-14 17:34:06 +02:00
parent 5ea5e048c9
commit d17836685e
9 changed files with 94 additions and 37 deletions

View File

@@ -17,7 +17,7 @@ namespace RAY {
public:
//! @brief A Model animation constructor
//! @param animationPtr an animation pointer, returned by the nimation-loading function
explicit ModelAnimation(::ModelAnimation *animationPtr);
explicit ModelAnimation(::ModelAnimation animation);
//! @brief A default copy-constructor
ModelAnimation(const ModelAnimation &) = default;
@@ -41,7 +41,7 @@ namespace RAY {
~ModelAnimation() = default;
private:
::ModelAnimation *_animation;
::ModelAnimation _animation;
size_t _frameCounter;
INTERNAL: