mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 17:50:12 +01:00
glx: Use 0 rather than garbage for unknown INTEL_swap_event types
Otherwise the garbage you return could well be numerically identical to
one of the swap type tokens, and apps which rely on us to tell the truth
would be in trouble.
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit f8540b9dcc)
This commit is contained in:
parent
b5093063b5
commit
e67afcdb9a
1 changed files with 1 additions and 0 deletions
|
|
@ -184,6 +184,7 @@ __glXdriSwapEvent(ClientPtr client, void *data, int type, CARD64 ust,
|
|||
break;
|
||||
default:
|
||||
/* unknown swap completion type */
|
||||
wire.event_type = 0;
|
||||
break;
|
||||
}
|
||||
wire.drawable = drawable->drawId;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue