Clear Viewpointbuffer position so it does not go to infinity

This commit is contained in:
Emile Belanger 2021-04-25 16:13:13 +01:00 committed by Christoph Oelckers
parent c9791bc148
commit b83928f437
1 changed files with 2 additions and 0 deletions

View File

@ -427,6 +427,8 @@ void videoShowFrame(int32_t w)
}); });
screen->Update(); screen->Update();
screen->mVertexData->Reset(); screen->mVertexData->Reset();
screen->mViewpoints->Clear();
videoSetBrightness(0); // immediately reset this after rendering so that the value doesn't stick around in the backend. videoSetBrightness(0); // immediately reset this after rendering so that the value doesn't stick around in the backend.
// After finishing the frame, reset everything for the next frame. This needs to be done better. // After finishing the frame, reset everything for the next frame. This needs to be done better.