wined3d: Create a VBO before returning memory.
commite40bb4a8c3bffba1b5d429508e8fa4cd3cbc3186
authorStefan Dösinger <stefan@codeweavers.com>
Mon, 11 Feb 2008 11:46:43 +0000 (11 12:46 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 19 Feb 2008 13:47:51 +0000 (19 14:47 +0100)
tree051d9cc6613423822e9e95181d78f7d9b76c7bf4
parent7dec20d84a474597c083b7970de95f71ce621657
wined3d: Create a VBO before returning memory.

The state manager calls GetMemory before it calls PreLoad on the VBO,
and PreLoad depends on finding the VBO in the strided vertex structure.
This can cause problems on the first draw which creates the vertex
buffer, because the first PreLoad creates the vbo and attempts to
convert with an incorrect strided structure.
dlls/wined3d/vertexbuffer.c