mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-08 10:40:23 +01:00
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>
(cherry picked from commit 7b65175266)
This commit is contained in:
parent
dbc093ec10
commit
1ae61e0c40
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue