Revert "e_hwc_windows: check type of pixmap before pixmap_image_clear" 29/216329/1
authorSeunghun Lee <shiin.lee@samsung.com>
Wed, 23 Oct 2019 10:33:17 +0000 (19:33 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Wed, 23 Oct 2019 10:34:25 +0000 (19:34 +0900)
This reverts commit 0c45b8d5b723305b7bbe31d672078d94693e099a.

Change-Id: Id35515ed0ff6c979eff98829aa7f37ac3d9a16bb

src/bin/e_hwc_windows.c

index 9be0b3c..aec20f2 100644 (file)
@@ -2220,13 +2220,9 @@ _e_hwc_windows_changes_update(E_Hwc *hwc)
         else
           {
              /* sometimes client add frame cb without buffer attach */
-             if ((hwc_window->ec) &&
-                 (hwc_window->accepted_state == E_HWC_WINDOW_STATE_DEVICE))
-               {
-                  if ((hwc_window->ec->pixmap) &&
-                      (e_pixmap_type_get(hwc_window->ec->pixmap) == E_PIXMAP_TYPE_WL))
-                    e_pixmap_image_clear(hwc_window->ec->pixmap, 1);
-               }
+             if (hwc_window->ec &&
+                 hwc_window->accepted_state == E_HWC_WINDOW_STATE_DEVICE)
+               e_pixmap_image_clear(hwc_window->ec->pixmap, 1);
           }
 
         /* update the window's info */