[client] main: let the renderer know if it's rendering a whole new frame

While the renderer can internally track this it would be better to
simply provide this information to the renderer directly so it can make
better decisions on how best to update the screen.
This commit is contained in:
Geoffrey McRae 2021-07-21 17:26:48 +10:00
parent 8cf444ef31
commit 6389a06903
4 changed files with 10 additions and 4 deletions

View file

@ -584,7 +584,7 @@ bool opengl_render_startup(void * opaque)
return true;
}
bool opengl_render(void * opaque, LG_RendererRotate rotate)
bool opengl_render(void * opaque, LG_RendererRotate rotate, const bool newFrame)
{
struct Inst * this = (struct Inst *)opaque;
if (!this)