wayland_egl: fix checking egl extension for native image 79/265779/3
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 28 Oct 2021 06:05:49 +0000 (15:05 +0900)
committerchangyeon lee <cyeon.lee@samsung.com>
Fri, 29 Oct 2021 05:30:57 +0000 (05:30 +0000)
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

src/modules/evas/engines/wayland_egl/evas_engine.c

index decbef9..72bfcdb 100755 (executable)
@@ -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