mesa: check for null ptr in _mesa_is_bufferobj()
authorBrian Paul <brianp@vmware.com>
Wed, 23 Nov 2011 22:33:46 +0000 (15:33 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 28 Nov 2011 15:07:32 +0000 (08:07 -0700)
commit56b870e44106188f425df6eb45b7a394f0420e5e
treeda0df4d7f7b3f3b2b9cf2d028e95040e6626475e
parent37bf720da4a165c3fbf22d8ebb87c5c42e02f98e
mesa: check for null ptr in _mesa_is_bufferobj()

This simplifies a few callers.  And it adds a bit of robustness.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
src/mesa/main/bufferobj.c
src/mesa/main/bufferobj.h
src/mesa/state_tracker/st_draw.c