Use VFS::Path::Normalized for ResourceManager cache key

fix-osga-rotate-wildly
elsid 10 months ago
parent b5b6744321
commit cd3c3ebadb
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -3,6 +3,8 @@
#include <osg/ref_ptr>
#include <components/vfs/pathutil.hpp>
#include "objectcache.hpp"
namespace VFS
@ -70,11 +72,11 @@ namespace Resource
double mExpiryDelay;
};
class ResourceManager : public GenericResourceManager<std::string>
class ResourceManager : public GenericResourceManager<VFS::Path::Normalized>
{
public:
explicit ResourceManager(const VFS::Manager* vfs, double expiryDelay)
: GenericResourceManager<std::string>(vfs, expiryDelay)
: GenericResourceManager(vfs, expiryDelay)
{
}
};

Loading…
Cancel
Save