diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-09 19:12:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-09 22:52:30 -0700 |
commit | 9805cedf7b0f76d3b75f94e956c4cc2dcf0d8b64 (patch) | |
tree | 466df72bc6e3fdad5a0a682a480af6905bd02780 /glx | |
parent | 0af79b124e1317c36d1613d28755c5a8ce612e2a (diff) |
Use C99 designated initializers in extension Events
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Tested-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxdri2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/glx/glxdri2.c b/glx/glxdri2.c index e0f4cf79e..909de706a 100644 --- a/glx/glxdri2.c +++ b/glx/glxdri2.c @@ -178,12 +178,13 @@ __glXdriSwapEvent(ClientPtr client, void *data, int type, CARD64 ust, CARD64 msc, CARD32 sbc) { __GLXdrawable *drawable = data; - xGLXBufferSwapComplete2 wire; + xGLXBufferSwapComplete2 wire = { + .type = __glXEventBase + GLX_BufferSwapComplete + }; if (!(drawable->eventMask & GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK)) return; - wire.type = __glXEventBase + GLX_BufferSwapComplete; switch (type) { case DRI2_EXCHANGE_COMPLETE: wire.event_type = GLX_EXCHANGE_COMPLETE_INTEL; |