loader/dri3: Don't accidently free buffer holding new back content
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 14 Sep 2017 11:09:05 +0000 (13:09 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 5 Oct 2017 07:17:12 +0000 (09:17 +0200)
commit15e208c4ccdd94582a459d0066b587f91caf270c
tree629ce695a135f0965b44dc1013b3580017ba7128
parent1b8e0bed6989386ce096fc0dce92cd0f3df8ea88
loader/dri3: Don't accidently free buffer holding new back content

Avoid freeing buffers holding new back content
(with GLX_SWAP_COPY_OML and GLX_SWAP_EXCHANGE_OML)
Prevously that would have resulted in back buffer content becoming
incorrect after a swap, although I haven't managed to trigger such a
situation yet.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
src/loader/loader_dri3_helper.c