mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 02:34:00 +00:00
[common] fix framebuffer_prepare to use atomic_store
This commit is contained in:
@@ -95,7 +95,7 @@ bool framebuffer_read_fn(const FrameBuffer * frame, FrameBufferReadFn fn, size_t
|
||||
*/
|
||||
void framebuffer_prepare(FrameBuffer * frame)
|
||||
{
|
||||
frame->wp = 0;
|
||||
atomic_store(&frame->wp, 0);
|
||||
}
|
||||
|
||||
bool framebuffer_write(FrameBuffer * frame, const void * src, size_t size)
|
||||
|
Reference in New Issue
Block a user