OSDN Git Service

u_vbuf_mgr: restore buffer offsets
authorChia-I Wu <olv@lunarg.com>
Wed, 20 Jul 2011 10:52:33 +0000 (18:52 +0800)
committerMarek Olšák <maraeo@gmail.com>
Thu, 21 Jul 2011 20:18:56 +0000 (22:18 +0200)
commite24c3575e46ec6350a792e1c27aea35468d30cc8
treea53655b170844723aa28d68dad5ead69b4435614
parent2e50a93cf3f485d9e2e82475935d32ae3be8a50a
u_vbuf_mgr: restore buffer offsets

u_vbuf_upload_buffers modifies the buffer offsets.  If they are not
restored, and any of the vertex formats is not supported natively, the
next u_vbuf_mgr_draw_begin call will translate the vertex buffers with
incorrect buffer offsets.
(cherry picked from commit afc160e1c8f87d0a76e41f1100d528d8ab82ecc4)

Signed-off-by: Marek Olšák <maraeo@gmail.com>
src/gallium/auxiliary/util/u_vbuf_mgr.c