mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-10 17:38:10 +00:00
[client] egl: do not leak fence when using DMABUF
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user