mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-23 06:11:46 +00:00
[client] egl: do not leak fence when using DMABUF
This commit is contained in:
parent
30c3b399f2
commit
5d5eb47598
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue