mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- 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:
parent
22f8c26917
commit
0dc7f6be19
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue