[common] fix FrameBuffer to use atomics correctly

Might Fix #248
This commit is contained in:
Geoffrey McRae committed 2020-04-12 13:14:53 +10:00
1 parent b5f4c639fd
commit 1222fd40b7
4 files changed
+39 -21

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ static int frameThread(void * opaque)
fi->height = frame.height;
fi->stride = frame.stride;
fi->pitch = frame.pitch;
fi->offset = pageSize - sizeof(FrameBuffer);
fi->offset = pageSize - FrameBufferStructSize;
frameValid = true;
// put the framebuffer on the border of the next page