[all] align the frame data to the page boundary

This commit is contained in:
Geoffrey McRae
2020-01-13 19:17:09 +11:00
parent 17df1ebc6b
commit 9846762991
5 changed files with 9 additions and 4 deletions

View File

@@ -440,7 +440,7 @@ static int frameThread(void * unused)
updatePositionInfo();
}
FrameBuffer fb = (FrameBuffer)(frame + 1);
FrameBuffer fb = (FrameBuffer)(((uint8_t*)frame) + frame->offset);
if (!state.lgr->on_frame_event(state.lgrData, lgrFormat, fb))
{
DEBUG_ERROR("renderer on frame event returned failure");