svga: don't crash/assert if we fail to allocate a vertex buffer
authorBrian Paul <brianp@vmware.com>
Thu, 10 Nov 2011 16:54:26 +0000 (09:54 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 11 Nov 2011 14:10:56 +0000 (07:10 -0700)
commit871dc64869fa371debf03735e215a12cf2ec1742
treefff8a55a34557ac93871f5909087e7fa17f4175e
parentaa661306828b8c76c1511f05e0fae577f06477b8
svga: don't crash/assert if we fail to allocate a vertex buffer

v2: check if pipe_buffer_map() returns NULL, and return NULL from
svga_vbuf_render_map_vertices().  Per Jose's suggestion.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_swtnl_backend.c