diff options
author | Brian Paul <[email protected]> | 2009-02-23 20:23:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-02-24 08:32:50 -0700 |
commit | 66ddf1a00f7f730831c32b27e46515a0369487ff (patch) | |
tree | 22db57e03b7236fdde70e50e98ed7cd68360b6aa /src/gallium/winsys | |
parent | e6479c62504ec828e25cd6b46f8999f3a26a482c (diff) |
cell: added null ptr check in xm_flush_frontbuffer()
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/xlib/xlib_cell.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |