mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user