e_view_image: Initailze Evas_Native_Surface 20/324120/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 13 May 2025 02:42:12 +0000 (11:42 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 13 May 2025 07:17:17 +0000 (16:17 +0900)
Change-Id: If8ee7c8dd9d33ca4ec42fc0a995263bac45242c5

src/bin/core/e_view_image.c

index 15c5b1408a15d71784c7558feb9f72f11c9270d0..50237f64d32a7506806d466fd669e328e84a6044 100644 (file)
@@ -594,6 +594,9 @@ e_view_image_native_surface_set(E_View_Image *image, E_View_Native_Surface *surf
    if (surf)\r
      {\r
         Evas_Native_Surface evas_native_surface;\r
+\r
+        memset(&evas_native_surface, 0, sizeof(Evas_Native_Surface));\r
+\r
         image->native = *surf;\r
         switch (surf->type)\r
           {\r
@@ -602,14 +605,17 @@ e_view_image_native_surface_set(E_View_Image *image, E_View_Native_Surface *surf
               evas_native_surface.data.tbm.buffer = surf->data.tbm.buffer;\r
               evas_native_surface.data.tbm.rot = surf->data.tbm.rot;\r
               evas_native_surface.data.tbm.ratio = surf->data.tbm.ratio;\r
+              evas_native_surface.version = surf->version;\r
               break;\r
            case E_VIEW_NATIVE_SURFACE_WL:\r
               evas_native_surface.type = EVAS_NATIVE_SURFACE_WL;\r
               evas_native_surface.data.wl.legacy_buffer = surf->data.wl.legacy_buffer;\r
+              evas_native_surface.version = surf->version;\r
               break;\r
            default:\r
               image->native.type = E_VIEW_NATIVE_SURFACE_NONE;\r
               evas_native_surface.type = EVAS_NATIVE_SURFACE_NONE;\r
+              evas_native_surface.version = surf->version;\r
           }\r
 \r
         // this function is implemented copy of native_surface's structure after alloc inside of set function.\r