mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
clear the b->frontxrb->drawable field in xmesa_free_buffer(), see bug 7205
This commit is contained in:
parent
46fe008778
commit
3049946fa7
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue