diff options
author | Brian Paul <[email protected]> | 2010-05-24 16:19:21 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-05-24 16:21:55 -0600 |
commit | 8cbc1517c1ba508dbf4d19f6eee729cdd1df8c37 (patch) | |
tree | 2f4bf4cb3579c9e192d96a4ca0b32cfb8d6edc7a | |
parent | a94955843059af787ca5d289a87e2f35a869437a (diff) |
st/glx: check if deleting head of buffer list
-rw-r--r-- | src/gallium/state_trackers/glx/xlib/xm_api.c | 4 |
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 fc12a9a71f6..c0c418306fb 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; + } } } } |