summaryrefslogtreecommitdiffstats
path: root/src/glx/glx_pbuffer.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-03-02 07:34:29 -0700
committerBrian Paul <[email protected]>2010-03-02 07:38:15 -0700
commit5f40a7aed12500fd6792e2453f495555c3b5c54d (patch)
tree1240fb151903e44ce815f59bba8b822a5c212917 /src/glx/glx_pbuffer.c
parent4ca70c489baed3e23dbf5e5e5794385113e22252 (diff)
glx: replace assertion with conditional
See fd.o bug 26832.
Diffstat (limited to 'src/glx/glx_pbuffer.c')
-rw-r--r--src/glx/glx_pbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c
index f635138d628..52e067165c8 100644
--- 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();