projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb38cad
)
Fix CreateDrawable
author
David Reveman
<c99drn@cs.umu.se>
Tue, 11 Apr 2006 12:07:41 +0000
(12:07 +0000)
committer
David Reveman
<c99drn@cs.umu.se>
Tue, 11 Apr 2006 12:07:41 +0000
(12:07 +0000)
src/glx/x11/glx_pbuffer.c
patch
|
blob
|
history
diff --git
a/src/glx/x11/glx_pbuffer.c
b/src/glx/x11/glx_pbuffer.c
index 59971585d1221a091a0544afa9935cb728101fe0..cb083fce37641f2946e7917fe14e73f13b10308e 100644
(file)
--- a/
src/glx/x11/glx_pbuffer.c
+++ b/
src/glx/x11/glx_pbuffer.c
@@
-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;