Modified build error when TIZEN_FEATURE disabled. 31/263431/1 linux_yocto
authorJoonbum Ko <joonbum.ko@samsung.com>
Thu, 2 Sep 2021 06:29:20 +0000 (15:29 +0900)
committerJoonbum Ko <joonbum.ko@samsung.com>
Thu, 2 Sep 2021 06:29:20 +0000 (15:29 +0900)
Change-Id: Ib0452ed93c86b1400a9daadfb2e295f95f11fd61
Signed-off-by: Joonbum Ko <joonbum.ko@samsung.com>
src/tpl_wl_egl_thread.c

index aae8adb..cf6ba5e 100755 (executable)
@@ -2787,8 +2787,11 @@ _thread_surface_queue_acquire(tpl_wl_egl_surface_t *wl_egl_surface)
                                TPL_INFO("[WL_BUFFER_CREATE]",
                                                  "wl_egl_buffer(%p) wl_buffer(%p) tbm_surface(%p)",
                                                  wl_egl_buffer, wl_egl_buffer->wl_buffer, tbm_surface);
+#if TIZEN_FEATURE_ENABLE
                                if (!wl_egl_display->use_explicit_sync ||
-                                       !wl_egl_surface->surface_sync) {
+                                       !wl_egl_surface->surface_sync)
+#endif
+                               {
                                                wl_buffer_add_listener((struct wl_buffer *)wl_egl_buffer->wl_buffer,
                                                                                           &wl_buffer_release_listener,
                                                                                           wl_egl_buffer);
@@ -3186,8 +3189,11 @@ _thread_wl_surface_commit(tpl_wl_egl_surface_t *wl_egl_surface,
                                 wl_egl_buffer, wl_egl_buffer->wl_buffer,
                                 wl_egl_buffer->tbm_surface);
 
+#if TIZEN_FEATURE_ENABLE
                if (!wl_egl_display->use_explicit_sync ||
-                       !wl_egl_surface->surface_sync) {
+                       !wl_egl_surface->surface_sync)
+#endif
+               {
                        wl_buffer_add_listener((struct wl_buffer *)wl_egl_buffer->wl_buffer,
                                                                   &wl_buffer_release_listener,
                                                                   wl_egl_buffer);