diff options
author | Vinson Lee <vlee@vmware.com> | 2010-02-20 16:23:44 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-02-20 16:23:44 -0800 |
commit | 71e3abc014cf8a1c18dcfd87517546a47ba41b6d (patch) | |
tree | eab49428b98e48f270f7f72afc17cd569e383dcc /src/gallium/state_trackers/glx/xlib/xm_api.c | |
parent | e3114d3f0ff45f6e3ef38c59cceb9b6923b7b0eb (diff) |
st/xlib: Add assert to check for null pointer dereference.
Diffstat (limited to 'src/gallium/state_trackers/glx/xlib/xm_api.c')
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.c | 1 |
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 */ |