diff options
author | Søren Sandmann <ssp@redhat.com> | 2012-08-14 14:20:11 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-08-23 17:34:33 -0400 |
commit | bdf042a1552680014a6ccd5f3aaf8f190a831e3c (patch) | |
tree | 363089fe8fa6514c9697f885daa7b2cb003fa51d | |
parent | 2919c8713835de7a0359f408102eba66a248b25b (diff) |
uxa: don't prepare composite when dest is not offscreen
-rw-r--r-- | src/uxa/uxa-glyphs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/uxa/uxa-glyphs.c b/src/uxa/uxa-glyphs.c index dd50dfc..997feb7 100644 --- a/src/uxa/uxa-glyphs.c +++ b/src/uxa/uxa-glyphs.c @@ -932,6 +932,11 @@ uxa_glyphs_via_mask(CARD8 op, uxa_clear_pixmap(screen, uxa_screen, pixmap); + if (!uxa_pixmap_is_offscreen(pixmap)) { + screen->DestroyPixmap(pixmap); + return 1; + } + component_alpha = NeedsComponent(maskFormat->format); mask = CreatePicture(0, &pixmap->drawable, maskFormat, CPComponentAlpha, |