summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/uxa/uxa-glyphs.c5
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,