Skip to content

Commit

Permalink
Clear Viewpointbuffer position so it does not go to infinity
Browse files Browse the repository at this point in the history
  • Loading branch information
emileb authored and coelckers committed May 2, 2021
1 parent c9791bc commit b83928f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/glbackend/glbackend.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit b83928f

Please sign in to comment.