From 71e3abc014cf8a1c18dcfd87517546a47ba41b6d Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 20 Feb 2010 16:23:44 -0800 Subject: [PATCH] st/xlib: Add assert to check for null pointer dereference. --- src/gallium/state_trackers/glx/xlib/xm_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c index a274da0c62f..4aac08a1084 100644 --- a/src/gallium/state_trackers/glx/xlib/xm_api.c +++ b/src/gallium/state_trackers/glx/xlib/xm_api.c @@ -1148,6 +1148,7 @@ void XMesaCopySubBuffer( XMesaBuffer b, int x, int y, int width, int height ) if (!surf_front || !surf_back) return; + assert(pipe); pipe->surface_copy(pipe, surf_front, x, y, /* dest */ surf_back, x, y, /* src */ -- 2.30.2