e_pixmap: checked wl_buffer resouce of e_pixmap when qeury format 35/94335/3
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 20 Oct 2016 11:36:32 +0000 (20:36 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 2 Nov 2016 02:20:32 +0000 (19:20 -0700)
Change-Id: I2e979e6bbc47788d217a1ca8aab7db231f898131

src/bin/e_pixmap.c

index cea2b8328f9f0c43ca3a660b2e357c7063aa9bce..0412ae3266fa449f14d0b1fb68edae2d30e0a7d8 100644 (file)
@@ -474,7 +474,7 @@ e_pixmap_refresh(E_Pixmap *cp)
 
    if (shm_buffer)
      format = wl_shm_buffer_get_format(shm_buffer);
-   else if (e_comp->gl)
+   else if (e_comp->gl && buffer->resource)
      e_comp_wl->wl.glapi->evasglQueryWaylandBuffer(e_comp_wl->wl.gl,
                                                    buffer->resource,
                                                    EVAS_GL_TEXTURE_FORMAT,