st/mesa: fix computing the lowest address for interleaved attribs
authorWiktor Janas <wixorpeek@gmail.com>
Wed, 23 Feb 2011 06:10:12 +0000 (07:10 +0100)
committerMarek Olšák <maraeo@gmail.com>
Wed, 23 Feb 2011 14:19:37 +0000 (15:19 +0100)
commitb65e2195c4a3aeb6179e2ec227ba0a2414efc8af
treeee68b3de0401e3068c0f8de6ad523b40a4e90a7b
parent6d1f28d6c045f768da2eee779006535acf382cce
st/mesa: fix computing the lowest address for interleaved attribs

Ptr can be very well NULL, so when there are two arrays, with one having
offset 0 (and thus NULL Ptr), and the other having a non-zero offset,
the non-zero value is taken as minimum (because of !low_addr ? start ...).
On 32-bit systems, this somehow works. On 64-bit systems, it leads to crashes.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
src/mesa/state_tracker/st_draw.c