mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-22 19:31:17 +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
3bb5608435
commit
979c3022c4
1 changed files with 4 additions and 1 deletions
|
@ -365,7 +365,10 @@ void FMD3Model::RenderFrame(FModelRenderer *renderer, FTexture * skin, int frame
|
||||||
surfaceSkin = TexMan(surf->skins[0]);
|
surfaceSkin = TexMan(surf->skins[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!surfaceSkin) return;
|
if (!surfaceSkin)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
renderer->SetMaterial(surfaceSkin, false, translation);
|
renderer->SetMaterial(surfaceSkin, false, translation);
|
||||||
|
|
Loading…
Reference in a new issue