summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uxa/uxa-render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index c2c3f68f..ed380e91 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -815,6 +815,9 @@ uxa_acquire_picture(ScreenPtr screen,
dst = uxa_acquire_drawable(screen, src,
x, y, width, height,
out_x, out_y);
+ if (!dst)
+ return 0;
+
if (uxa_screen->info->check_composite_texture &&
!uxa_screen->info->check_composite_texture(screen, dst)) {
if (dst != src)