avoid using auto variables for windows compilation

This commit is contained in:
arthur.jamet
2021-05-31 22:04:14 +02:00
parent 39deddcc91
commit c9794975f3
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ namespace RAY {
{
if (Image::_modelsCache.find(path) == Image::_modelsCache.end())
Image::_modelsCache.emplace(path, std::shared_ptr<::Image>(
new ::Image(LoadImage(path.c_str())), [](auto p) {
new ::Image(LoadImage(path.c_str())), [](::Image *p) {
UnloadImage(*p);
delete p;
}));