- If client try to create only explicit_surface_sync after
destroying its old one while ec is retained,
the creation will be failed because ec->explicit_surface_sync
was not initialized to NULL.
- This problem cannot occur in normal EGL client,
but can occur in Vulkan.
Change-Id: Ifa5e0340c5a6f91ec66fd24c5c5f3a3fce3f1c42
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
if (explicit_sync_surface->ec)
{
e_object_delfn_del(E_OBJECT(explicit_sync_surface->ec), explicit_sync_surface->ec_delfn);
+ explicit_sync_surface->ec->explicit_sync_surface = NULL;
explicit_sync_surface->ec_delfn = NULL;
explicit_sync_surface->ec = NULL;
}