intel: Unmap buffers if needed at DeleteBuffer time.
authorEric Anholt <eric@anholt.net>
Wed, 6 May 2009 20:58:57 +0000 (13:58 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 7 May 2009 03:44:34 +0000 (20:44 -0700)
commit156a79f5bd7b3e79f219adf4619ec449a7c0ed1c
treea9d7717dc2b337db7c20ee4df8bb80ed10a00927
parent58544a28ad561d7d9e16deb048443c2d2b5c12d8
intel: Unmap buffers if needed at DeleteBuffer time.

This fixes a crash in glean's pbo test, which tripped over the assert when a
context was destroyed while a buffer was still mapped (Mesa doesn't call
UnmapBuffer in that case).  Regression in
c6bde8873fbda6d8467600b7491d8543c75b0509
src/mesa/drivers/dri/intel/intel_buffer_objects.c