Commit e06fa804 authored by Michel Dänzer's avatar Michel Dänzer Committed by Keith Packard
Browse files

EXA: Fix crash with fill using 1x1 tile of depth < 8 (bug #24703).

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=24703

 .
Signed-off-by: default avatarMichel Dänzer <daenzer@vmware.com>
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
parent 56d9c736
......@@ -1057,6 +1057,8 @@ exaFillRegionSolid (DrawablePtr pDrawable, RegionPtr pRegion, Pixel pixel,
*(CARD16*)pExaPixmap->sys_ptr = pixel;
break;
case 8:
case 4:
case 1:
*(CARD8*)pExaPixmap->sys_ptr = pixel;
}
......
......@@ -748,6 +748,8 @@ exaGetPixmapFirstPixel (PixmapPtr pPixmap)
return pixel;
}
case 8:
case 4:
case 1:
{
CARD8 pixel;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment