mirror of
https://github.com/X11Libre/xf86-video-ati.git
synced 2026-03-24 01:24:43 +00:00
EXA: Handle ihandle == -1 in RADEONEXASharePixmapBacking
This commit is contained in:
committed by
Michel Dänzer
parent
1799680f7b
commit
84bde2df5b
@@ -296,11 +296,12 @@ Bool RADEONEXASharePixmapBacking(PixmapPtr ppix, ScreenPtr slave, void **fd_hand
|
||||
Bool RADEONEXASetSharedPixmapBacking(PixmapPtr ppix, void *fd_handle)
|
||||
{
|
||||
struct radeon_exa_pixmap_priv *driver_priv = exaGetPixmapDriverPrivate(ppix);
|
||||
int ihandle = (int)(long)fd_handle;
|
||||
|
||||
if (!radeon_set_shared_pixmap_backing(ppix, fd_handle, &driver_priv->surface))
|
||||
return FALSE;
|
||||
|
||||
driver_priv->shared = TRUE;
|
||||
driver_priv->shared = ihandle != -1;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user