e_comp: fix bug about hwc end with invalid pixmap 18/116318/1 accepted/tizen/3.0/common/20170224.130216 accepted/tizen/3.0/ivi/20170224.070458 accepted/tizen/3.0/mobile/20170224.070405 accepted/tizen/3.0/tv/20170224.070427 accepted/tizen/3.0/wearable/20170224.070444 accepted/tizen/ivi/20170224.065546 accepted/tizen/mobile/20170224.065455 accepted/tizen/tv/20170224.065513 accepted/tizen/wearable/20170224.065531 submit/tizen/20170224.043430 submit/tizen_3.0/20170224.043501
authorJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 23 Feb 2017 15:32:10 +0000 (00:32 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 23 Feb 2017 15:32:10 +0000 (00:32 +0900)
Change-Id: I5035f9d544fe00bf8b50747e2157f5f1cdfb0e6e

src/bin/e_comp.c

index 145315bf1b09afa62d4cd4b5dc411254c3df2c0f..028971bc7b8e1b4b4af284f672db7fdc4e658ed2 100644 (file)
@@ -810,13 +810,15 @@ _e_comp_hwc_usable(void)
              E_Comp_Wl_Buffer *buffer = NULL;
 
              if (ep->prepare_ec)
-               buffer = e_pixmap_resource_get(ep_fb->prepare_ec->pixmap);
-
-             if (!buffer)
                {
-                  // if attached buffer is not valid than hwc is not usable
-                  DBG("Cannot use HWC due to invalid pixmap");
-                  return EINA_FALSE;
+                  buffer = e_pixmap_resource_get(ep->prepare_ec->pixmap);
+
+                  if (!buffer)
+                    {
+                       // if attached buffer is not valid than hwc is not usable
+                       DBG("Cannot use HWC due to invalid pixmap");
+                       return EINA_FALSE;
+                    }
                }
 
              if (!ep_fb)