d3dx9: Use 0 instead of D3DLOCK_DISCARD in OptimizeInPlace.
commit342faea03591e2d13851be798b5b61f9a68f9be0
authorMichael Mc Donnell <michael@mcdonnell.dk>
Fri, 19 Aug 2011 14:48:18 +0000 (19 16:48 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 31 Aug 2011 17:43:06 +0000 (31 19:43 +0200)
tree5910420e0375d45fafef80015532ff65ae31dc1a
parent97556eb061d8c6ea6184883e5a5cd00187a76fbd
d3dx9: Use 0 instead of D3DLOCK_DISCARD in OptimizeInPlace.

It does not make sense to use D3DLOCK_DISCARD for locking a newly created
vertex buffer because it will be allocated, freed, and then allocated again.
dlls/d3dx9_36/mesh.c