summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-05-24 16:19:21 -0600
committerBrian Paul <brianp@vmware.com>2010-05-24 16:21:55 -0600
commit8cbc1517c1ba508dbf4d19f6eee729cdd1df8c37 (patch)
tree2f4bf4cb3579c9e192d96a4ca0b32cfb8d6edc7a /src/gallium/state_trackers
parenta94955843059af787ca5d289a87e2f35a869437a (diff)
st/glx: check if deleting head of buffer list
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/glx/xlib/xm_api.c4
1 files changed, 4 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 fc12a9a71f..c0c418306f 100644
--- a/src/gallium/state_trackers/glx/xlib/xm_api.c
+++ b/src/gallium/state_trackers/glx/xlib/xm_api.c
@@ -1184,6 +1184,10 @@ void xmesa_destroy_buffers_on_display(Display *dpy)
next = b->Next;
if (b->xm_visual->display == dpy) {
xmesa_free_buffer(b);
+ /* delete head of list? */
+ if (XMesaBufferList == b) {
+ XMesaBufferList = next;
+ }
}
}
}