summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/xlib
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-02-23 20:23:00 -0700
committerBrian Paul <[email protected]>2009-02-24 08:32:50 -0700
commit66ddf1a00f7f730831c32b27e46515a0369487ff (patch)
tree22db57e03b7236fdde70e50e98ed7cd68360b6aa /src/gallium/winsys/xlib
parente6479c62504ec828e25cd6b46f8999f3a26a482c (diff)
cell: added null ptr check in xm_flush_frontbuffer()
Diffstat (limited to 'src/gallium/winsys/xlib')
-rw-r--r--src/gallium/winsys/xlib/xlib_cell.c3
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);
}