Skip to content

Commit

Permalink
- fixed: MD3s with a skin-less surface left the renderer in an undefi…
Browse files Browse the repository at this point in the history
…ned state.

The frame interpolation factor wasn't reset and rendering prematurely aborted with no chance to recover.
  • Loading branch information
coelckers committed Oct 9, 2018
1 parent 22f8c26 commit 0dc7f6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/r_data/models/models_md3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0dc7f6b

Please sign in to comment.