summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/glx
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-02-20 16:23:44 -0800
committerVinson Lee <vlee@vmware.com>2010-02-20 16:23:44 -0800
commit71e3abc014cf8a1c18dcfd87517546a47ba41b6d (patch)
treeeab49428b98e48f270f7f72afc17cd569e383dcc /src/gallium/state_trackers/glx
parente3114d3f0ff45f6e3ef38c59cceb9b6923b7b0eb (diff)
st/xlib: Add assert to check for null pointer dereference.
Diffstat (limited to 'src/gallium/state_trackers/glx')
-rw-r--r--src/gallium/state_trackers/glx/xlib/xm_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c
index a274da0c62..4aac08a108 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 */