diff options
author | Eric Anholt <eric@anholt.net> | 2010-01-21 10:31:04 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-01-27 14:06:59 -0800 |
commit | 0688dca044f966abc3da667f6d4e79e7cf47f996 (patch) | |
tree | 152225631c1107c9b33311f9342463be97d04e15 /glx/glxdri2.c | |
parent | a6bd5d2e482a5aa84acb3d4932e2a166d8670ef1 (diff) |
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>
Diffstat (limited to 'glx/glxdri2.c')
-rw-r--r-- | glx/glxdri2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index 69fd39b3b..0f998de75 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; |