wined3d: Check the alignment of mapped buffer pointers.
commitcc6d17ba7cacb171a478f63ed81473ee0730ef35
authorStefan Dösinger <stefan@codeweavers.com>
Thu, 11 Mar 2010 12:20:32 +0000 (11 13:20 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 16 Mar 2010 16:03:13 +0000 (16 17:03 +0100)
tree9f73425009b374dd06ed5043a43ff76b424f0a7f
parent6c53871d302cdd257675b88a01a7b6fc4944b06e
wined3d: Check the alignment of mapped buffer pointers.

Windows returns 32 byte aligned pointers when locking vertex and index
buffers, and some applications(Half Life 2, Alpha Prime, possibly others)
rely on this. Check the alignment and fall back to double buffered
buffers with HeapAlloced and aligned pointers if the alignment doesn't
fit.
dlls/wined3d/buffer.c