projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
radeon/r200/r300/r600: fix blit BO buffer validation
[mesa.git]
/
src
/
glx
/
glx_pbuffer.c
diff --git
a/src/glx/glx_pbuffer.c
b/src/glx/glx_pbuffer.c
index 4c122ba6ddc99c109b4414bfe0b468acecd1aaec..52e067165c8c1a127f9ab289a8bd4708c4aef079 100644
(file)
--- a/
src/glx/glx_pbuffer.c
+++ b/
src/glx/glx_pbuffer.c
@@
-379,7
+379,8
@@
CreateDrawable(Display * dpy, const __GLcontextModes * fbconfig,
req->glxwindow = (GLXWindow) XAllocID(dpy);
req->numAttribs = (CARD32) i;
- memcpy(data, attrib_list, 8 * i);
+ if (attrib_list)
+ memcpy(data, attrib_list, 8 * i);
UnlockDisplay(dpy);
SyncHandle();