From: Brian Paul Date: Tue, 24 Feb 2009 03:23:00 +0000 (-0700) Subject: cell: added null ptr check in xm_flush_frontbuffer() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66ddf1a00f7f730831c32b27e46515a0369487ff;p=mesa.git cell: added null ptr check in xm_flush_frontbuffer() --- diff --git a/src/gallium/winsys/xlib/xlib_cell.c b/src/gallium/winsys/xlib/xlib_cell.c index c87564f4dc1..40bcdfe42a0 100644 --- a/src/gallium/winsys/xlib/xlib_cell.c +++ b/src/gallium/winsys/xlib/xlib_cell.c @@ -222,7 +222,8 @@ xm_flush_frontbuffer(struct pipe_winsys *pws, * This function copies that XImage to the actual X Window. */ XMesaContext xmctx = (XMesaContext) context_private; - xlib_cell_display_surface(xmctx->xm_buffer, surf); + if (xmctx) + xlib_cell_display_surface(xmctx->xm_buffer, surf); }