evas/engine: check for surface creation failure 59/93359/2 accepted/tizen/3.0/ivi/20161028.151409 accepted/tizen/3.0/mobile/20161028.143303 accepted/tizen/3.0/tv/20161028.143558 accepted/tizen/3.0/wearable/20161028.150902 accepted/tizen/common/20161026.134705 accepted/tizen/ivi/20161026.133741 accepted/tizen/mobile/20161026.133504 accepted/tizen/tv/20161026.133634 accepted/tizen/wearable/20161026.133709 submit/tizen/20161026.101032 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.092423 submit/tizen_3.0_common/20161104.104000
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Mon, 24 Oct 2016 01:39:02 +0000 (10:39 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 26 Oct 2016 10:05:26 +0000 (03:05 -0700)
Change-Id: Ie81f479876bed27dafcbe4d34622e80a25a5b9e9

src/modules/evas/engines/gl_generic/evas_engine.c

index fe0815d..de9c283 100644 (file)
@@ -2545,7 +2545,9 @@ eng_ector_surface_create(void *data, void *surface, int width, int height, Eina_
 
    surface = eng_image_new_from_copied_data(data, width, height, NULL, EINA_TRUE, EVAS_COLORSPACE_ARGB8888);
    //Use this hint for ZERO COPY texture upload.
-   eng_image_content_hint_set(data, surface, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
+   if (surface)
+     eng_image_content_hint_set(data, surface, EVAS_IMAGE_CONTENT_HINT_DYNAMIC);
+
    return surface;
 }