summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm/ecore_drm_fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_fb.c')
-rw-r--r--src/lib/ecore_drm/ecore_drm_fb.c11
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)
176 EINA_SAFETY_ON_NULL_RETURN(dev); 176 EINA_SAFETY_ON_NULL_RETURN(dev);
177 EINA_SAFETY_ON_NULL_RETURN(fb); 177 EINA_SAFETY_ON_NULL_RETURN(fb);
178 178
179 if ((fb->w != dev->dumb[0]->w) || (fb->h != dev->dumb[0]->h)) 179 if (dev->dumb[0])
180 { 180 {
181 /* we need to copy from fb to dev->dumb */ 181 if ((fb->w != dev->dumb[0]->w) || (fb->h != dev->dumb[0]->h))
182 WRN("Trying to set a Framebuffer of improper size !!"); 182 {
183 return; 183 /* we need to copy from fb to dev->dumb */
184 WRN("Trying to set a Framebuffer of improper size !!");
185 return;
186 }
184 } 187 }
185 188
186 if (!dev->next) dev->next = fb; 189 if (!dev->next) dev->next = fb;