gallium: only create pipe buffer when size is nonzero
authorMaarten Maathuis <madman2003@gmail.com>
Sun, 20 Dec 2009 13:03:03 +0000 (05:03 -0800)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 23 Dec 2009 16:33:54 +0000 (16:33 +0000)
commit8e8502bc6352227afda370cfeeb1a49b128df752
treebf6b90d4123d8c2e13c5de5e3c1e232a62dba942
parentb5ddc7821a334177ff3f6c0ea3a5c24245ad194c
gallium: only create pipe buffer when size is nonzero

- This fixes a crash upon starting spring (a rts engine/game).

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
src/mesa/state_tracker/st_cb_bufferobjects.c