diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/glx/glx_pbuffer.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index 1de3e74a09..5f91bc623a 100644 --- a/src/glx/glx_pbuffer.c +++ b/src/glx/glx_pbuffer.c @@ -117,7 +117,7 @@ ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable,     else {        xGLXVendorPrivateWithReplyReq *vpreq; -      GetReqExtra(GLXVendorPrivateWithReply, 4 + (8 * num_attribs), vpreq); +      GetReqExtra(GLXVendorPrivateWithReply, 8 + (8 * num_attribs), vpreq);        output = (CARD32 *) (vpreq + 1);        vpreq->reqType = opcode; @@ -125,7 +125,8 @@ ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable,        vpreq->vendorCode = X_GLXvop_ChangeDrawableAttributesSGIX;        output[0] = (CARD32) drawable; -      output++; +      output[1] = num_attribs; +      output += 2;     }     (void) memcpy(output, attribs, sizeof(CARD32) * 2 * num_attribs); | 
