* If not, user(EGL) have to wait until signaled. */
if (release_fence) {
#if TIZEN_FEATURE_ENABLE
- if (wl_egl_surface->surface_sync) {
+ if (wl_egl_display->use_explicit_sync) {
*release_fence = wl_egl_buffer->release_fence_fd;
TPL_DEBUG("wl_egl_surface(%p) wl_egl_buffer(%p) release_fence_fd(%d)",
wl_egl_surface, wl_egl_buffer, *release_fence);
if (wl_egl_buffer->acquire_fence_fd != -1) {
#if TIZEN_FEATURE_ENABLE
- if (wl_egl_surface->surface_sync)
+ if (wl_egl_display->use_explicit_sync)
ready_to_commit = TPL_TRUE;
else
#endif
#if TIZEN_FEATURE_ENABLE
if (!wl_egl_display->use_explicit_sync ||
- !wl_egl_surface->surface_sync)
+ wl_egl_buffer->acquire_fence_fd == -1)
#endif
{
wl_buffer_add_listener((struct wl_buffer *)wl_egl_buffer->wl_buffer,
wl_egl_buffer->serial);
#if TIZEN_FEATURE_ENABLE
if (wl_egl_display->use_explicit_sync &&
- wl_egl_surface->surface_sync) {
+ wl_egl_buffer->acquire_fence_fd != -1) {
zwp_linux_surface_synchronization_v1_set_acquire_fence(wl_egl_surface->surface_sync,
wl_egl_buffer->acquire_fence_fd);