mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 10:08:24 +00:00
[client] egl: do not leak fence when using DMABUF
This commit is contained in:
parent
30c3b399f2
commit
5d5eb47598
@ -479,6 +479,7 @@ bool egl_texture_update_from_dma(EGL_Texture * texture, const FrameBuffer * fram
|
|||||||
DEBUG_EGL_ERROR("glClientWaitSync failed");
|
DEBUG_EGL_ERROR("glClientWaitSync failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
glDeleteSync(fence);
|
||||||
atomic_fetch_add_explicit(&texture->state.w, 1, memory_order_release);
|
atomic_fetch_add_explicit(&texture->state.w, 1, memory_order_release);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user