diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-11-04 09:40:54 -0500 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-11-04 09:40:54 -0500 |
commit | 49d9b3d3032d8c6e98fa364d1d428dd7b85a1535 (patch) | |
tree | f92daa5735f85b9938ab5e5a316817c3ae5b3351 | |
parent | f55d0a3d0740aa2673e9b13f9341c8665389c201 (diff) | |
download | efl-49d9b3d3032d8c6e98fa364d1d428dd7b85a1535.tar.gz |
ecore-drm: Don't always check fb size against dumb buffer
Summary: If we are running using gl_drm, then we don't need to create
software dumb buffers on the drm device. Since we may not have the
dumb buffers (only used in software rendering), then we should not
always be checking the framebuffer size against the dumb buffer size.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_fb.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_fb.c b/src/lib/ecore_drm/ecore_drm_fb.c index 69c6107617..780516795b 100644 --- a/src/lib/ecore_drm/ecore_drm_fb.c +++ b/src/lib/ecore_drm/ecore_drm_fb.c @@ -176,11 +176,14 @@ ecore_drm_fb_set(Ecore_Drm_Device *dev, Ecore_Drm_Fb *fb) EINA_SAFETY_ON_NULL_RETURN(dev); EINA_SAFETY_ON_NULL_RETURN(fb); - if ((fb->w != dev->dumb[0]->w) || (fb->h != dev->dumb[0]->h)) + if (dev->dumb[0]) { - /* we need to copy from fb to dev->dumb */ - WRN("Trying to set a Framebuffer of improper size !!"); - return; + if ((fb->w != dev->dumb[0]->w) || (fb->h != dev->dumb[0]->h)) + { + /* we need to copy from fb to dev->dumb */ + WRN("Trying to set a Framebuffer of improper size !!"); + return; + } } if (!dev->next) dev->next = fb; |