mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 01:48:02 +02: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:
parent
f7af00e9f0
commit
b3a7b229e1
1 changed files with 2 additions and 1 deletions
|
|
@ -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, \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue