From 66ddf1a00f7f730831c32b27e46515a0369487ff Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 23 Feb 2009 20:23:00 -0700 Subject: [PATCH] cell: added null ptr check in xm_flush_frontbuffer() --- src/gallium/winsys/xlib/xlib_cell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/winsys/xlib/xlib_cell.c b/src/gallium/winsys/xlib/xlib_cell.c index c87564f..40bcdfe 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); } -- 2.7.4