diff options
author | Eric Anholt <eric@anholt.net> | 2017-06-01 16:46:02 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-06-02 09:04:10 -0700 |
commit | d8ccfb132602be88e640cc87ea58496e0445aab7 (patch) | |
tree | af64495e51ab09f62396ed8176f7f50c3582854e /Xext | |
parent | 4f29366f1e5678505fb882143c9b4a892d5b8273 (diff) |
meson: Fix enabling of xshmfence.
I misspelled the enable flag, so DRI3 would throw BadImplementation
when you tried to start any GL app. Same as in
c7be7a688a78a34f61b90c0d95914e14b90b0cdc, we also convert it to #ifdef
for consistency.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xext')
-rw-r--r-- | Xext/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Xext/sync.c b/Xext/sync.c index 4c4835929..a8db0ec22 100644 --- a/Xext/sync.c +++ b/Xext/sync.c @@ -919,7 +919,7 @@ SyncCreate(ClientPtr client, XID id, unsigned char type) int SyncCreateFenceFromFD(ClientPtr client, DrawablePtr pDraw, XID id, int fd, BOOL initially_triggered) { -#if HAVE_XSHMFENCE +#ifdef HAVE_XSHMFENCE SyncFence *pFence; int status; @@ -945,7 +945,7 @@ SyncCreateFenceFromFD(ClientPtr client, DrawablePtr pDraw, XID id, int fd, BOOL int SyncFDFromFence(ClientPtr client, DrawablePtr pDraw, SyncFence *pFence) { -#if HAVE_XSHMFENCE +#ifdef HAVE_XSHMFENCE return miSyncFDFromFence(pDraw, pFence); #else return BadImplementation; |