fix invalid usage of buffer_unreference()
authorBrian <brian.paul@tungstengraphics.com>
Sat, 11 Aug 2007 16:03:51 +0000 (17:03 +0100)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 11 Aug 2007 16:03:51 +0000 (17:03 +0100)
commit37fdc69a99a7692d337fb4efaea97df842490f21
tree34124b899f0b5db209b5368b7d9218f2e4f97a5a
parent83521ee66ad3f3cd3ec8212d6f746caecdc6c407
fix invalid usage of buffer_unreference()

Need to pass the address of the buffer ptr, not the buffer ptr.
Before, the region->buffer type was void * so it wasn't effectively
type-checked.  Changing the type to pipe_buffer_object* allows the
compiler to detect the error.  Fixing this solves a segfault.
src/mesa/pipe/i915simple/i915_regions.c
src/mesa/pipe/softpipe/sp_region.c