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>
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;