diff options
author | Brian <brian@yutani.localnet.net> | 2007-03-14 12:52:53 -0600 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2007-03-14 12:52:53 -0600 |
commit | 3049946fa742b654afa9b24f8bc79f387f01aea9 (patch) | |
tree | b5d59c9bb3d26d05413107c45f38b870fc74b5d0 /src/mesa/drivers/x11 | |
parent | 46fe0087780ccc490c1fcb93453a5abe507668ee (diff) |
clear the b->frontxrb->drawable field in xmesa_free_buffer(), see bug 7205
Diffstat (limited to 'src/mesa/drivers/x11')
-rw-r--r-- | src/mesa/drivers/x11/xm_api.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/xm_api.c b/src/mesa/drivers/x11/xm_api.c index 776928dec4..cbbbd56efd 100644 --- a/src/mesa/drivers/x11/xm_api.c +++ b/src/mesa/drivers/x11/xm_api.c @@ -483,6 +483,12 @@ xmesa_free_buffer(XMesaBuffer buffer) /* mark as delete pending */ fb->DeletePending = GL_TRUE; + + /* Since the X window for the XMesaBuffer is going away, we don't + * want to dereference this pointer in the future. + */ + b->frontxrb->drawable = 0; + /* Unreference. If count = zero we'll really delete the buffer */ _mesa_unreference_framebuffer(&fb); |