diff options
Diffstat (limited to 'xorg-server/glx/single2swap.c')
-rw-r--r-- | xorg-server/glx/single2swap.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/xorg-server/glx/single2swap.c b/xorg-server/glx/single2swap.c index 764501f59..e410d30e1 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" @@ -201,14 +202,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); |