diff --git a/fb/fbpict.c b/fb/fbpict.c index 7ae3ec5fd..2fbef15c3 100644 --- a/fb/fbpict.c +++ b/fb/fbpict.c @@ -329,11 +329,9 @@ create_bits_picture (PicturePtr pict, pixman_image_t *image; DrawablePtr drawable; - if (is_src && pict->pDrawable->type == DRAWABLE_WINDOW) { + if (is_src && pict->pDrawable->type == DRAWABLE_WINDOW) drawable = copy_drawable (pict->pDrawable); - if (!drawable) - return NULL; - } else + else drawable = pict->pDrawable; fbGetDrawable (drawable, bits, stride, bpp, xoff, yoff);