diff --git a/ChangeLog b/ChangeLog index ae18990d9..990479378 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-03-08 Lars Knoll + + * render/picture.c + Initialize the format of a source picture to PICT_a8r8g8b8. + Fixes a failure in the gradients test of rendercheck. + In the long term we could do better by setting the format + to something without alpha whenever the gradient doesn't + contain colors with alpha. This triggers a reduction of + the over operation to a pure source operation. + 2006-03-07 Eric Anholt * hw/xfree86/common/xf86fbman.c: (xf86InitFBManager): diff --git a/render/picture.c b/render/picture.c index 299bded3f..8d4d77e36 100644 --- a/render/picture.c +++ b/render/picture.c @@ -977,6 +977,7 @@ static PicturePtr createSourcePicture(void) PicturePtr pPicture; pPicture = (PicturePtr) xalloc(sizeof(PictureRec)); pPicture->pDrawable = 0; + pPicture->format = PICT_a8r8g8b8; pPicture->pFormat = 0; pPicture->pNext = 0; pPicture->devPrivates = 0;