summaryrefslogtreecommitdiff
path: root/fb
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-12-01 11:04:06 -0800
committerKeith Packard <keithp@keithp.com>2009-12-11 11:49:38 -0800
commit0816c5482c25251da8af5978cc348e1c547bf731 (patch)
tree2462e10f53caa92012e2c6b380838305bb6c59f7 /fb
parentd3e054ac07dae12a82ad764b0622fddbef4b9ec5 (diff)
Revert "fb: Don't crash if copy_drawable() returns NULL."
This reverts commit 66a9616d645f5a23225251d197e00b94c79274f6. Signed-off-by: Keith Packard <keithp@keithp.com> Acked-by: Soeren Sandmann <sandmann@daimi.au.dk>
Diffstat (limited to 'fb')
-rw-r--r--fb/fbpict.c6
1 files changed, 2 insertions, 4 deletions
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);