glx: replace assertion with conditional
authorBrian Paul <brianp@vmware.com>
Tue, 2 Mar 2010 14:34:29 +0000 (07:34 -0700)
committerBrian 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

index f635138d628714f7da9982bc57f1e05dcbddf3b4..52e067165c8c1a127f9ab289a8bd4708c4aef079 100644 (file)
@@ -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();