[intel] intel_batchbuffer_flush using uninit 'used' to check for buffer empty
authorKeith Packard <keithp@keithp.com>
Thu, 8 May 2008 17:37:23 +0000 (10:37 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 8 May 2008 17:37:23 +0000 (10:37 -0700)
commitfda5687241f4ce5cab3bf2eac437b52d4b37dd10
treec021ea15d9930006ca38af130024ab1e39ff76da
parent68a916183276f727948e73fe752ebf36ef9f8ba9
[intel] intel_batchbuffer_flush using uninit 'used' to check for buffer empty

Make sure 'used' tracks the right value through the whole function.
Also, use GLint for intel_batchbuffer_space in case we do bad things
in the future.
src/mesa/drivers/dri/intel/intel_batchbuffer.c
src/mesa/drivers/dri/intel/intel_batchbuffer.h