- changed voxel remapping to make a copy instead of destroying the original.

With live renderer switching both sets of data are needed.
This commit is contained in:
Christoph Oelckers 2018-04-03 00:30:02 +02:00
commit 942460ba55
9 changed files with 44 additions and 26 deletions

View file

@ -188,15 +188,6 @@ void FSoftwareRenderer::RenderView(player_t *player)
FCanvasTextureInfo::UpdateAll();
}
void FSoftwareRenderer::RemapVoxels()
{
for (unsigned i=0; i<Voxels.Size(); i++)
{
Voxels[i]->CreateBgraSlabData();
Voxels[i]->Remap();
}
}
void FSoftwareRenderer::WriteSavePic (player_t *player, FileWriter *file, int width, int height)
{
DCanvas *pic = new DSimpleCanvas (width, height, false);