From: Changyeon Lee Date: Thu, 28 Oct 2021 06:05:49 +0000 (+0900) Subject: wayland_egl: fix checking egl extension for native image X-Git-Tag: accepted/tizen/unified/20211109.042919~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d36564a813f7ba3b6eb37d09539558ddec699c0;p=platform%2Fupstream%2Fefl.git wayland_egl: fix checking egl extension for native image initial value of has_tizen_native_surface and has_dma_buf_import is EINA_TRUE. it is changed to EINA_FALSE after checking extension in gl_extn_veto. Change-Id: I74224e3ff696774d46063dc3e2cb3d4a5343d40c --- diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c index decbef9..72bfcdb 100755 --- a/src/modules/evas/engines/wayland_egl/evas_engine.c +++ b/src/modules/evas/engines/wayland_egl/evas_engine.c @@ -341,14 +341,18 @@ gl_extn_veto(Render_Engine *re) { glsym_eglSwapBuffersWithDamage = NULL; } - if (strstr(str, "EGL_TIZEN_image_native_surface")) + if (!strstr(str, "EGL_TIZEN_image_native_surface")) + { + has_tizen_native_surface = EINA_FALSE; + } + else { eng_get_ob(re)->gl_context->shared->info.egl_tbm_ext = 1; - has_tizen_native_surface = EINA_TRUE; } - if (strstr(str, "EGL_EXT_image_dma_buf_import")) + + if (!strstr(str, "EGL_EXT_image_dma_buf_import")) { - has_dma_buf_import = EINA_TRUE; + has_dma_buf_import = EINA_FALSE; } } else