diff options
Diffstat (limited to 'xorg-server/glx/single2.c')
-rw-r--r-- | xorg-server/glx/single2.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/xorg-server/glx/single2.c b/xorg-server/glx/single2.c index 9597d29fe..a73c18cd5 100644 --- a/xorg-server/glx/single2.c +++ b/xorg-server/glx/single2.c @@ -30,6 +30,10 @@ #ifdef HAVE_DIX_CONFIG_H #include <dix-config.h> +#else + +#include "glheader.h" + #endif #include <string.h> @@ -193,14 +197,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); |