Revert "rotaiton: do not set null to resource of e_pixmap, it causes a problem on... 11/106511/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 15 Dec 2016 07:27:27 +0000 (16:27 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Thu, 22 Dec 2016 03:43:35 +0000 (12:43 +0900)
This reverts commit 27b7aac6914aae7361e103fa0bbaedf9a8792c62.

Change-Id: Icf4842c0b1e536442cbf0638c13310d23db993f9

src/rotation/e_mod_rotation_wl.c

index 7ceede8..46d97f7 100644 (file)
@@ -1473,13 +1473,13 @@ _rot_cb_buffer_change(void *data EINA_UNUSED, int ev_type EINA_UNUSED, E_Event_C
     * wl_buffer can be destroyed after attach/damage/frame/commit to wl_surface.
     * we have to handle this case.
     */
-   if (((e_comp_canvas_norender_get()) && (!rot->angle_change_done)) ||
-       (!e_pixmap_resource_get(ev->ec->pixmap)))
+   if ((!rot->angle_change_done) || (!e_pixmap_resource_get(ev->ec->pixmap)))
      {
         DBG("Update Buffer in progress of rotation ec '%s'(%p)",
             ev->ec->icccm.name ? ev->ec->icccm.name : "", ev->ec);
 
         e_pixmap_image_clear(ev->ec->pixmap, EINA_TRUE);
+        e_pixmap_resource_set(ev->ec->pixmap, NULL);
      }
    else if (rot->wait_update)
      {