summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/uxa/i915_video.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/uxa/i915_video.c b/src/uxa/i915_video.c
index f6a1c6e1..16389cdb 100644
--- a/src/uxa/i915_video.c
+++ b/src/uxa/i915_video.c
@@ -78,6 +78,11 @@ I915DisplayVideoTextured(ScrnInfoPtr scrn,
if (target == NULL)
return;
+ if (intel_get_pixmap_bo(target) == NULL) {
+ screen->DestroyPixmap(target);
+ return;
+ }
+
pix_xoff = -dxo;
pix_yoff = -dyo;
} else {