dri2: Fix order of operations issue in __glXdriSwapEvent test.

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

Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Eric Anholt 2010-01-21 10:31:04 -08:00 committed by Keith Packard
parent a6bd5d2e48
commit 0688dca044

View File

@ -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;