[PATCH] dri2: Fix order of operations issue in __glXdriSwapEvent test.

Eric Anholt eric at anholt.net
Thu Jan 21 10:31:04 PST 2010


Clients would have received swap events regardless of asking for it.

Signed-off-by: Eric Anholt <eric at anholt.net>
---
 glx/glxdri2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/glx/glxdri2.c b/glx/glxdri2.c
index 69fd39b..0f998de 100644
--- a/glx/glxdri2.c
+++ b/glx/glxdri2.c
@@ -174,7 +174,7 @@ __glXdriSwapEvent(ClientPtr client, void *data, int type, CARD64 ust,
     __GLXdrawable *drawable = data;
     xGLXBufferSwapComplete wire;
 
-    if (!drawable->eventMask & GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK)
+    if (!(drawable->eventMask & GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK))
 	return;
 
     wire.type = __glXEventBase + GLX_BufferSwapComplete;
-- 
1.6.5.7




More information about the xorg mailing list