- fixed: MD3s with a skin-less surface left the renderer in an undefined state.

The frame interpolation factor wasn't reset and rendering prematurely aborted with no chance to recover.
This commit is contained in:
Christoph Oelckers 2018-10-09 19:16:15 +02:00
parent 22f8c26917
commit 0dc7f6be19

View file

@ -363,7 +363,10 @@ void FMD3Model::RenderFrame(FModelRenderer *renderer, FTexture * skin, int frame
surfaceSkin = TexMan(surf->skins[0]);
}
if (!surfaceSkin) return;
if (!surfaceSkin)
{
continue;
}
}
renderer->SetMaterial(surfaceSkin, false, translation);