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.
This commit is contained in:
Lars Knoll 2006-03-08 06:19:37 +00:00
parent cb5090e8d6
commit 65aa33f917
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,13 @@
2006-03-08 Lars Knoll <lars@trolltech.com>
* 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 <anholt@FreeBSD.org>
* hw/xfree86/common/xf86fbman.c: (xf86InitFBManager):

View File

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