aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/glx/single2swap.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/glx/single2swap.c')
-rw-r--r--xorg-server/glx/single2swap.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/xorg-server/glx/single2swap.c b/xorg-server/glx/single2swap.c
index 1ca532836..47ff3e4c7 100644
--- a/xorg-server/glx/single2swap.c
+++ b/xorg-server/glx/single2swap.c
@@ -31,6 +31,7 @@
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
+#include "glheader.h"
#include "glxserver.h"
#include "glxutil.h"
@@ -205,14 +206,12 @@ __glXDispSwap_RenderMode(__GLXclientState * cl, GLbyte * pc)
*/
noChangeAllowed:;
client = cl->client;
- reply = (xGLXRenderModeReply) {
- .type = X_Reply,
- .sequenceNumber = client->sequence,
- .length = nitems,
- .retval = retval,
- .size = nitems,
- .newMode = newMode
- };
+ reply.type = X_Reply;
+ reply.sequenceNumber = client->sequence;
+ reply.length = nitems;
+ reply.retval = retval;
+ reply.size = nitems;
+ reply.newMode = newMode;
__GLX_SWAP_SHORT(&reply.sequenceNumber);
__GLX_SWAP_INT(&reply.length);
__GLX_SWAP_INT(&reply.retval);