mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[common] fix framebuffer_prepare to use atomic_store
This commit is contained in:
parent
1222fd40b7
commit
dbd7db7787
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user