summaryrefslogtreecommitdiff
path: root/glamor
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2015-11-17 22:31:21 +0100
committerEric Anholt <eric@anholt.net>2016-09-25 11:00:24 -0700
commitba199cb90157cefab01183f2e2c909895df73321 (patch)
tree194537ea545c2f5df55eab7e2a0e242b6609e8ad /glamor
parent8bb4b11298c285d2cd1eb28e65729933ec386829 (diff)
glamor: Make glamor_sync_init work with --disable-xshmfence
Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'glamor')
-rw-r--r--glamor/glamor_sync.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/glamor/glamor_sync.c b/glamor/glamor_sync.c
index fbc47d4b3..907e0c613 100644
--- a/glamor/glamor_sync.c
+++ b/glamor/glamor_sync.c
@@ -97,6 +97,9 @@ glamor_sync_init(ScreenPtr screen)
#ifdef HAVE_XSHMFENCE
if (!miSyncShmScreenInit(screen))
return FALSE;
+#else
+ if (!miSyncSetup(screen))
+ return FALSE;
#endif
screen_funcs = miSyncGetScreenFuncs(screen);