st/xorg: Fix crash in MPH
authorJakob Bornecrantz <wallbraker@gmail.com>
Mon, 31 Aug 2009 23:24:53 +0000 (00:24 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Mon, 31 Aug 2009 23:44:36 +0000 (00:44 +0100)
src/gallium/state_trackers/xorg/xorg_exa.c

index 305d75d520a74084d95be65fc4e2202c9f0540ff..3697d26363e4aaaab1136fb90a7fdc51201bb7e7 100644 (file)
@@ -485,7 +485,7 @@ ExaModifyPixmapHeader(PixmapPtr pPixmap, int width, int height,
                exa->scrn->tex_surface_destroy(dst_surf);
                exa->scrn->tex_surface_destroy(priv->src_surf);
                priv->src_surf = NULL;
-           } else {
+           } else if (pPixmap->devPrivate.ptr) {
                struct pipe_transfer *transfer;
 
                if (priv->map_count != 0)