From: Julien Cristau Date: Wed, 26 Jan 2011 12:03:17 +0000 (-0800) Subject: glx: fix length of GLXGetFBConfigsSGIX X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbe9fc12a64c3ae89fd1b20e9e165aa4b76293a5;p=mesa.git glx: fix length of GLXGetFBConfigsSGIX The extra length is the size of the request *minus* the size of the VendorPrivate header, not the addition. NOTE: This is a candidate for the 7.9 and 7.10 branches Signed-off-by: Julien Cristau Signed-off-by: Brian Paul --- diff --git a/src/glx/glxext.c b/src/glx/glxext.c index c5e9d0510b6..c75c9bfd329 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -688,7 +688,7 @@ static GLboolean } else if (strstr(psc->serverGLXexts, "GLX_SGIX_fbconfig") != NULL) { GetReqExtra(GLXVendorPrivateWithReply, - sz_xGLXGetFBConfigsSGIXReq + + sz_xGLXGetFBConfigsSGIXReq - sz_xGLXVendorPrivateWithReplyReq, vpreq); sgi_req = (xGLXGetFBConfigsSGIXReq *) vpreq; sgi_req->reqType = priv->majorOpcode;