Revert "fb: Don't crash if copy_drawable() returns NULL."

This reverts commit 66a9616d64.

Signed-off-by: Keith Packard <keithp@keithp.com>
Acked-by: Soeren Sandmann <sandmann@daimi.au.dk>
This commit is contained in:
Keith Packard 2009-12-01 11:04:06 -08:00
parent d3e054ac07
commit 0816c5482c

View File

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