OSDN Git Service

st/mesa: fix crash when using both user and vbo buffers with the same stride
authorMarek Olšák <maraeo@gmail.com>
Sun, 20 Feb 2011 17:05:24 +0000 (18:05 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sun, 20 Feb 2011 21:16:22 +0000 (22:16 +0100)
commit695cdee67827ee2c11e1445eb2022d3a530f1b23
tree25c424ce615714feade1ecc1abdbcc9e1bb636fe
parent7942e6a5ae0113f1cbdf62b772849cf6cdd4eca1
st/mesa: fix crash when using both user and vbo buffers with the same stride

If two buffers had the same stride where one buffer is a user one and
the other is a vbo, it was considered to be one interleaved buffer,
resulting in incorrect rendering and crashes.

This patch makes sure that the interleaved buffer is either user or vbo,
not both.
src/mesa/state_tracker/st_draw.c