On Wed, Jul 29, 2015 at 9:19 AM, Emil Velikov <emil.l.veli...@gmail.com> wrote: > Strictly speaking the xcb_connection_has_error() might be sufficient, > yet the documentation does not mention what will happen if NULL is fed > to the function. > > Keep things explicit, which will allow us to remove the dri2_dpy->conn > checking with the next commit.
Its implementation is int xcb_connection_has_error(xcb_connection_t *c) { /* doesn't need locking because it's read and written atomically. */ return c->has_error; } so passing NULL is certainly not okay. :) _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev