From 5f40a7aed12500fd6792e2453f495555c3b5c54d Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 2 Mar 2010 07:34:29 -0700 Subject: glx: replace assertion with conditional See fd.o bug 26832. --- src/glx/glx_pbuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/glx/glx_pbuffer.c') diff --git a/src/glx/glx_pbuffer.c b/src/glx/glx_pbuffer.c index f635138d62..52e067165c 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(); -- cgit v1.2.3