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;
}));

View File

@@ -110,7 +110,7 @@ namespace RAY::Drawables::Drawables3D {
{
if (Model::_modelsCache.find(path) == Model::_modelsCache.end())
Model::_modelsCache.emplace(path, std::shared_ptr<::Model>(
new ::Model(LoadModel(path.c_str())), [](auto p) {
new ::Model(LoadModel(path.c_str())), [](::Model *p) {
UnloadModel(*p);
delete p;
}));