summaryrefslogtreecommitdiff
path: root/src/uxa/intel_uxa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uxa/intel_uxa.c')
-rw-r--r--src/uxa/intel_uxa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/uxa/intel_uxa.c b/src/uxa/intel_uxa.c
index 0b6591af..6fb1333f 100644
--- a/src/uxa/intel_uxa.c
+++ b/src/uxa/intel_uxa.c
@@ -1159,6 +1159,9 @@ Bool intel_uxa_create_screen_resources(ScreenPtr screen)
pixmap = screen->GetScreenPixmap(screen);
intel_set_pixmap_bo(pixmap, bo);
+ if (intel_get_pixmap_private(pixmap) == NULL)
+ return FALSE;
+
intel_get_pixmap_private(pixmap)->pinned |= PIN_SCANOUT;
screen->ModifyPixmapHeader(pixmap,
scrn->virtualX,