mesa: unreference current winsys buffers when unbinding winsys buffers
authorCharmaine Lee <charmainel@vmware.com>
Sun, 19 May 2019 01:34:06 +0000 (18:34 -0700)
committerCharmaine Lee <charmainel@vmware.com>
Mon, 20 May 2019 20:09:32 +0000 (13:09 -0700)
commit12bf7cfecf52083c484602f971738475edfe497e
tree608cd4ee922a199871b19856641ffa5a91fe9577
parentb480adfa5ee224528eaed7e1da934a2d3e2b94d6
mesa: unreference current winsys buffers when unbinding winsys buffers

This fixes surface leak when no winsys buffers are bound.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/context.c