From 264fc3abe5f18341d0cf9ddb6766e10e4154e447 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 31 Oct 2013 13:01:46 -0700 Subject: [PATCH] misync: Don't smash custom screen sync functions There was a check to avoid smashing custom functions, but the sense was backwards causing it to always smash them, and also not set them otherwise. Signed-off-by: Keith Packard Reviewed-by: Adam Jackson --- miext/sync/misync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miext/sync/misync.c b/miext/sync/misync.c index b6914d18d..f38054754 100644 --- a/miext/sync/misync.c +++ b/miext/sync/misync.c @@ -190,7 +190,7 @@ miSyncSetup(ScreenPtr pScreen) pScreenPriv = SYNC_SCREEN_PRIV(pScreen); - if (pScreenPriv->funcs.CreateFence) { + if (!pScreenPriv->funcs.CreateFence) { pScreenPriv->funcs = miSyncScreenFuncs; /* Wrap CloseScreen to clean up */