projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ca70c4
)
glx: replace assertion with conditional
author
Brian Paul
<brianp@vmware.com>
Tue, 2 Mar 2010 14:34:29 +0000
(07:34 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 2 Mar 2010 14:38:15 +0000
(07:38 -0700)
See fd.o bug 26832.
src/glx/glx_pbuffer.c
patch
|
blob
|
history
diff --git
a/src/glx/glx_pbuffer.c
b/src/glx/glx_pbuffer.c
index f635138d628714f7da9982bc57f1e05dcbddf3b4..52e067165c8c1a127f9ab289a8bd4708c4aef079 100644
(file)
--- a/
src/glx/glx_pbuffer.c
+++ b/
src/glx/glx_pbuffer.c
@@
-379,8
+379,8
@@
CreateDrawable(Display * dpy, const __GLcontextModes * fbconfig,
req->glxwindow = (GLXWindow) XAllocID(dpy);
req->numAttribs = (CARD32) i;
- assert(attrib_list);
- memcpy(data, attrib_list, 8 * i);
+ if (attrib_list)
+
memcpy(data, attrib_list, 8 * i);
UnlockDisplay(dpy);
SyncHandle();