[client] egl: do not leak fence when using DMABUF

This commit is contained in:
vroad 2021-04-25 11:43:07 +09:00 committed by Geoffrey McRae
parent 30c3b399f2
commit 5d5eb47598

View File

@ -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;
} }