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:
parent
a6bd5d2e48
commit
0688dca044
|
@ -174,7 +174,7 @@ __glXdriSwapEvent(ClientPtr client, void *data, int type, CARD64 ust,
|
||||||
__GLXdrawable *drawable = data;
|
__GLXdrawable *drawable = data;
|
||||||
xGLXBufferSwapComplete wire;
|
xGLXBufferSwapComplete wire;
|
||||||
|
|
||||||
if (!drawable->eventMask & GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK)
|
if (!(drawable->eventMask & GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wire.type = __glXEventBase + GLX_BufferSwapComplete;
|
wire.type = __glXEventBase + GLX_BufferSwapComplete;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user