diff options
author | daryll <daryll> | 1999-12-08 23:27:43 +0000 |
---|---|---|
committer | daryll <daryll> | 1999-12-08 23:27:43 +0000 |
commit | 6abeee86cf2e25366b0a4195318e19ffd7137f5f (patch) | |
tree | 50d5b6c214ca551feb451f795f96f781148c6ff5 | |
parent | cfd7f6fe7ffcb200724bc9e6d7f3a94a0ce363dc (diff) |
When the device driver was updated the sense of the SIGIO install/remove
functions was reversed.
-rw-r--r-- | xc/programs/Xserver/GL/dri/dri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xc/programs/Xserver/GL/dri/dri.c b/xc/programs/Xserver/GL/dri/dri.c index b9799f8ea..eabc836ec 100644 --- a/xc/programs/Xserver/GL/dri/dri.c +++ b/xc/programs/Xserver/GL/dri/dri.c @@ -292,7 +292,7 @@ DRIFinishScreenInit(ScreenPtr pScreen) /* For swap methods of DRI_SERVER_SWAP and DRI_HIDE_X_CONTEXT * setup signal handler for receiving swap requests from kernel */ - if (drmInstallSIGIOHandler(pDRIPriv->drmFD, DRISwapContext)) { + if (!drmInstallSIGIOHandler(pDRIPriv->drmFD, DRISwapContext)) { DRIDrvMsg(pScreen->myNum, X_ERROR, "[drm] failed to setup DRM signal handler\n"); if (pDRIPriv->hiddenContextStore) @@ -345,7 +345,7 @@ DRICloseScreen(ScreenPtr pScreen) if (pDRIPriv && pDRIPriv->directRenderingSupport) { if (pDRIPriv->pDriverInfo->driverSwapMethod != DRI_KERNEL_SWAP) { - if (drmRemoveSIGIOHandler(pDRIPriv->drmFD)) { + if (!drmRemoveSIGIOHandler(pDRIPriv->drmFD)) { DRIDrvMsg(pScreen->myNum, X_ERROR, "[drm] failed to remove DRM signal handler\n"); } |