winex11.drv: Fallback to X11DRV_SHM_NONE in X11DRV_DIB_DoCopyDIBSection() if dest doesn't match the pixmap.
Falling back to X11DRV_SHM_IMAGE doesn't work, the image's data isn't in shared memory if the pixmap was created as Shm pixmap.
This commit is contained in:
parent
a4c1c66c87
commit
85fe381daf
|
@ -4300,7 +4300,7 @@ static void X11DRV_DIB_DoCopyDIBSection(X_PHYSBITMAP *physBitmap, BOOL toDIB,
|
|||
#ifdef HAVE_LIBXXSHM
|
||||
if (physBitmap->shm_mode == X11DRV_SHM_PIXMAP && physBitmap->pixmap != dest)
|
||||
{
|
||||
descr.shm_mode = X11DRV_SHM_IMAGE;
|
||||
descr.shm_mode = X11DRV_SHM_NONE;
|
||||
}
|
||||
#endif
|
||||
descr.dibpitch = dibSection.dsBm.bmWidthBytes;
|
||||
|
|
Loading…
Reference in New Issue