diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-08-04 23:23:21 +0200 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-08-04 23:23:21 +0200 |
commit | 842373104d08d47efc863cecbe30431d3faebef1 (patch) | |
tree | 63906ea9d1da6bd0f8f9907509e23abbd03780b7 /composite | |
parent | 0bf7eaf3052ce24066b0a7c14860b4762fb81364 (diff) |
Add support for RENDER BGRA formats.
Diffstat (limited to 'composite')
-rw-r--r-- | composite/compinit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/composite/compinit.c b/composite/compinit.c index dfc3929ee..6159e4e49 100644 --- a/composite/compinit.c +++ b/composite/compinit.c @@ -238,6 +238,7 @@ static CompAlternateVisual altVisuals[] = { { 24, PICT_r8g8b8 }, #endif { 32, PICT_a8r8g8b8 }, + { 32, PICT_b8g8r8a8 }, }; static const int NUM_COMP_ALTERNATE_VISUALS = sizeof(altVisuals) / @@ -272,7 +273,8 @@ compAddAlternateVisual(ScreenPtr pScreen, CompScreenPtr cs, return TRUE; pPictFormat = PictureMatchFormat (pScreen, alt->depth, alt->format); - if (!pPictFormat) + if (!pPictFormat || + pPictFormat->direct.red != pScreen->visuals[0].offsetRed) return FALSE; vid = xalloc(sizeof(VisualID)); |