mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 17:29:18 +02:00
fix material cache
This commit is contained in:
@@ -378,8 +378,8 @@ material_manager::create( std::string const &Filename, bool const Loadnow ) {
|
|||||||
// if we have material name and shader it means resource was processed succesfully
|
// if we have material name and shader it means resource was processed succesfully
|
||||||
material.finalize(Loadnow);
|
material.finalize(Loadnow);
|
||||||
materialhandle = m_materials.size();
|
materialhandle = m_materials.size();
|
||||||
m_materials.emplace_back( std::move(material) );
|
|
||||||
m_materialmappings.emplace( material.name, materialhandle );
|
m_materialmappings.emplace( material.name, materialhandle );
|
||||||
|
m_materials.emplace_back( std::move(material) );
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// otherwise record our failure to process the resource, to speed up subsequent attempts
|
// otherwise record our failure to process the resource, to speed up subsequent attempts
|
||||||
|
|||||||
Reference in New Issue
Block a user