mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
Make DRI_SCREEN_PRIV just return NULL when DRI isn't initialized
The code relied upon the previous devPrivate implementation which offered this convenience. Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
@@ -62,7 +62,8 @@ struct _DRIContextPrivRec
|
||||
};
|
||||
|
||||
#define DRI_SCREEN_PRIV(pScreen) ((DRIScreenPrivPtr) \
|
||||
dixLookupPrivate(&(pScreen)->devPrivates, DRIScreenPrivKey))
|
||||
(dixPrivateKeyRegistered(DRIScreenPrivKey) ? \
|
||||
dixLookupPrivate(&(pScreen)->devPrivates, DRIScreenPrivKey) : NULL))
|
||||
|
||||
#define DRI_SCREEN_PRIV_FROM_INDEX(screenIndex) ((DRIScreenPrivPtr) \
|
||||
dixLookupPrivate(&screenInfo.screens[screenIndex]->devPrivates, \
|
||||
|
||||
Reference in New Issue
Block a user