EXA: Check sys_ptr isn't NULL before passing it to the UploadToScreen hook.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=27510 . Signed-off-by: Michel Dänzer <daenzer@vmware.com> Reviewed-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
fc5d767408
commit
7b65175266
|
@ -512,7 +512,7 @@ exaHWCopyNtoN (DrawablePtr pSrcDrawable,
|
|||
*
|
||||
* Only taking this path for directly accessible pixmaps.
|
||||
*/
|
||||
} else if (!pDstExaPixmap->pDamage) {
|
||||
} else if (!pDstExaPixmap->pDamage && pSrcExaPixmap->sys_ptr) {
|
||||
int bpp = pSrcDrawable->bitsPerPixel;
|
||||
int src_stride = exaGetPixmapPitch(pSrcPixmap);
|
||||
CARD8 *src = NULL;
|
||||
|
|
Loading…
Reference in New Issue