mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
glx: fix request lengths
We were sending too long requests for GLXChangeDrawableAttributes,
GLXGetDrawableAttributes, GLXDestroyPixmap and GLXDestroyWindow.
NOTE: This is a candidate for the 7.9 and 7.10 branches
Signed-off-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 4324d6fdfb)
This commit is contained in:
parent
8a9e6a57d0
commit
1b641f1b32
1 changed files with 3 additions and 3 deletions
|
|
@ -106,7 +106,7 @@ ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable,
|
|||
if ((priv->majorVersion > 1) || (priv->minorVersion >= 3)) {
|
||||
xGLXChangeDrawableAttributesReq *req;
|
||||
|
||||
GetReqExtra(GLXChangeDrawableAttributes, 8 + (8 * num_attribs), req);
|
||||
GetReqExtra(GLXChangeDrawableAttributes, 8 * num_attribs, req);
|
||||
output = (CARD32 *) (req + 1);
|
||||
|
||||
req->reqType = opcode;
|
||||
|
|
@ -297,7 +297,7 @@ GetDrawableAttribute(Display * dpy, GLXDrawable drawable,
|
|||
if (use_glx_1_3) {
|
||||
xGLXGetDrawableAttributesReq *req;
|
||||
|
||||
GetReqExtra(GLXGetDrawableAttributes, 4, req);
|
||||
GetReq(GLXGetDrawableAttributes, req);
|
||||
req->reqType = opcode;
|
||||
req->glxCode = X_GLXGetDrawableAttributes;
|
||||
req->drawable = drawable;
|
||||
|
|
@ -435,7 +435,7 @@ DestroyDrawable(Display * dpy, GLXDrawable drawable, CARD32 glxCode)
|
|||
|
||||
LockDisplay(dpy);
|
||||
|
||||
GetReqExtra(GLXDestroyPbuffer, 4, req);
|
||||
GetReq(GLXDestroyPbuffer, req);
|
||||
req->reqType = opcode;
|
||||
req->glxCode = glxCode;
|
||||
req->pbuffer = (GLXPbuffer) drawable;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue