Fix interpolation when updating the level mesh
This commit is contained in:
parent
03e36e9d38
commit
858247f25f
1 changed files with 6 additions and 2 deletions
|
|
@ -1023,8 +1023,6 @@ void D_Display ()
|
|||
screen->FrameTimeNS = I_nsTime();
|
||||
TexAnim.UpdateAnimations(screen->FrameTime);
|
||||
R_UpdateSky(screen->FrameTime);
|
||||
if (level.levelMesh) level.levelMesh->BeginFrame(level);
|
||||
screen->BeginFrame();
|
||||
twod->ClearClipRect();
|
||||
if ((gamestate == GS_LEVEL || gamestate == GS_TITLELEVEL) && gametic != 0)
|
||||
{
|
||||
|
|
@ -1034,6 +1032,9 @@ void D_Display ()
|
|||
|
||||
D_Render([&]()
|
||||
{
|
||||
if (level.levelMesh) level.levelMesh->BeginFrame(level);
|
||||
screen->BeginFrame();
|
||||
|
||||
viewsec = RenderView(&players[consoleplayer]);
|
||||
}, true);
|
||||
|
||||
|
|
@ -1084,6 +1085,9 @@ void D_Display ()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (level.levelMesh) level.levelMesh->BeginFrame(level);
|
||||
screen->BeginFrame();
|
||||
|
||||
twod->Begin(screen->GetWidth(), screen->GetHeight());
|
||||
switch (gamestate)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue