Mesa (master): glx: fix length of GLXGetFBConfigsSGIX

Brian Paul brianp at kemper.freedesktop.org
Mon Jan 31 16:32:29 UTC 2011


Module: Mesa
Branch: master
Commit: cbe9fc12a64c3ae89fd1b20e9e165aa4b76293a5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbe9fc12a64c3ae89fd1b20e9e165aa4b76293a5

Author: Julien Cristau <jcristau at debian.org>
Date:   Wed Jan 26 04:03:17 2011 -0800

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 <jcristau at debian.org>
Signed-off-by: Brian Paul <brianp at vmware.com>

---

 src/glx/glxext.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index c5e9d05..c75c9bf 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;




More information about the mesa-commit mailing list