aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/glx/single2.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/glx/single2.c')
-rw-r--r--xorg-server/glx/single2.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/xorg-server/glx/single2.c b/xorg-server/glx/single2.c
index 9597d29fe..4bf65ed93 100644
--- a/xorg-server/glx/single2.c
+++ b/xorg-server/glx/single2.c
@@ -31,6 +31,7 @@
#ifdef HAVE_DIX_CONFIG_H
#include <dix-config.h>
#endif
+#include "glheader.h"
#include <string.h>
#include <stdio.h>
@@ -193,14 +194,12 @@ __glXDisp_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;
WriteToClient(client, sz_xGLXRenderModeReply, &reply);
if (retBytes) {
WriteToClient(client, retBytes, retBuffer);