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 9bebd7fabf
commit 4a05b9cb5b

View file

@ -427,6 +427,8 @@ void videoShowFrame(int32_t w)
});
screen->Update();
screen->mVertexData->Reset();
screen->mViewpoints->Clear();
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.