rotaiton: do not set null to resource of e_pixmap, it causes a problem on the e_plane... 06/103806/1
authorSeunghun Lee <shiin.lee@samsung.com>
Fri, 9 Dec 2016 12:13:55 +0000 (21:13 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Fri, 9 Dec 2016 12:13:55 +0000 (21:13 +0900)
aditionally, don't need to clear the pixmap, if canvas is in the render state.

Change-Id: I848d8aceb931a94131be60a228ed1eac6184d2e6

src/rotation/e_mod_rotation_wl.c

index 46d97f7..7ceede8 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 ((!rot->angle_change_done) || (!e_pixmap_resource_get(ev->ec->pixmap)))
+   if (((e_comp_canvas_norender_get()) && (!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)
      {