Skip to content
Commit 04e9d7bf authored by Charmaine Lee's avatar Charmaine Lee Committed by Juan A. Suarez Romero
Browse files

st/mesa: purge framebuffers with current context after unbinding winsys buffers



With commit c89e8470, framebuffers are purged after unbinding context,
but this change also introduces a heap corruption when running Rhino application
on VMware svga device. Instead of purging the framebuffers after the context
is unbound, this patch first ubinds the winsys buffers, then purges the framebuffers
with the current context, and then finally unbinds the context.

This fixes heap corruption.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
(cherry picked from commit b480adfa)
parent 857210b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment