Quick fix for NULL pixmaps with server 1.14.

Problem reported and fix tested by J. Scott Heppler. Thanks.
This commit is contained in:
matthieu 2013-06-29 09:05:55 +00:00
parent 7c02ec8a3f
commit 076750ef37

View File

@ -1878,6 +1878,9 @@ SiSUploadToScreen(PixmapPtr pDst, int x, int y, int w, int h, char *src, int src
int dst_pitch = exaGetPixmapPitch(pDst);
(pSiS->SyncAccel)(pScrn);
if (dst == NULL)
return FALSE;
if(pDst->drawable.bitsPerPixel < 8)
return FALSE;