mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
Fix CreateDrawable
This commit is contained in:
parent
bb38cadb1c
commit
342d1de38c
1 changed files with 7 additions and 1 deletions
|
|
@ -287,6 +287,7 @@ CreateDrawable( Display *dpy, const __GLcontextModes * fbconfig,
|
|||
xGLXCreateWindowReq * req;
|
||||
CARD32 * data;
|
||||
unsigned int i;
|
||||
CARD8 opcode;
|
||||
|
||||
i = 0;
|
||||
if (attrib_list) {
|
||||
|
|
@ -294,11 +295,16 @@ CreateDrawable( Display *dpy, const __GLcontextModes * fbconfig,
|
|||
i++;
|
||||
}
|
||||
|
||||
opcode = __glXSetupForCommand(dpy);
|
||||
if (!opcode) {
|
||||
return None;
|
||||
}
|
||||
|
||||
LockDisplay(dpy);
|
||||
GetReqExtra( GLXCreateWindow, 8 * i, req );
|
||||
data = (CARD32 *) (req + 1);
|
||||
|
||||
req->reqType = __glXSetupForCommand(dpy);
|
||||
req->reqType = opcode;
|
||||
req->glxCode = glxCode;
|
||||
req->screen = (CARD32) fbconfig->screen;
|
||||
req->fbconfig = fbconfig->fbconfigID;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue