e_plane: add checking same tbm_surface is fetched 52/220452/1 submit/tizen/20191219.081933
authorChangyeon Lee <cyeon.lee@samsung.com>
Wed, 18 Dec 2019 07:27:12 +0000 (16:27 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Wed, 18 Dec 2019 09:49:01 +0000 (18:49 +0900)
Change-Id: Ie0330966e51dcba29e566337bcf45ce67d52cd96

src/bin/e_plane.c

index 2ecab53a477772b35362aeb50a506be72127c42d..3dbdaca56f7678778f9384847e9a400f8b9f319e 100644 (file)
@@ -464,6 +464,8 @@ _e_plane_surface_from_client_acquire_reserved(E_Plane *plane)
         if (!tsurface)
           ERR("fail to e_plane_renderer_client_surface_recieve");
 
+        if (tsurface == plane->tsurface) return NULL;
+
         /* enqueue the surface to the layer_queue */
         if (!e_plane_renderer_surface_queue_enqueue(plane->renderer, tsurface))
           {
@@ -522,6 +524,8 @@ _e_plane_surface_from_client_acquire(E_Plane *plane)
         return NULL;
      }
 
+   if (tsurface == plane->tsurface) return NULL;
+
    return tsurface;
 }