hwr2: Reset extra lighttable textures

This commit is contained in:
Eidolon 2023-05-21 17:29:56 -05:00
parent e40b3ac1e3
commit 79a01789b8

View file

@ -297,6 +297,12 @@ void MainPaletteManager::postpass(Rhi& rhi)
rhi.destroy_texture(cm.second);
}
colormaps_.clear();
for (auto& lt : lighttables_)
{
rhi.destroy_texture(lt.second);
}
lighttables_.clear();
}
CommonResourcesManager::CommonResourcesManager() = default;