[common] fix framebuffer_prepare to use atomic_store

This commit is contained in:
Geoffrey McRae 2020-04-12 13:16:55 +10:00
parent 1222fd40b7
commit dbd7db7787
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
B1-165-gb5f4c639fd+1 B1-166-g1222fd40b7+1

View File

@ -95,7 +95,7 @@ bool framebuffer_read_fn(const FrameBuffer * frame, FrameBufferReadFn fn, size_t
*/ */
void framebuffer_prepare(FrameBuffer * frame) void framebuffer_prepare(FrameBuffer * frame)
{ {
frame->wp = 0; atomic_store(&frame->wp, 0);
} }
bool framebuffer_write(FrameBuffer * frame, const void * src, size_t size) bool framebuffer_write(FrameBuffer * frame, const void * src, size_t size)