diff options
author | Adam Jackson <ajax@redhat.com> | 2011-04-15 12:57:05 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-04-15 12:57:05 -0400 |
commit | f8540b9dcc1fba886be5c4ce7ea0d74952cb48c4 (patch) | |
tree | 9110ca37e92a180024868114c5b8124cab40cf10 /glx | |
parent | dc0cf7596782087bdda0e7f9cd2f60907c45b2c4 (diff) |
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>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxdri2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index e8961e255..d97971739 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -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; |