d3dx9: Use 0 instead of D3DLOCK_DISCARD in D3DXCreateTextW.

This commit is contained in:
Michael Mc Donnell 2011-08-19 19:05:52 +02:00 committed by Alexandre Julliard
parent bae50905c5
commit 2f1917956b
1 changed files with 2 additions and 2 deletions

View File

@ -5344,11 +5344,11 @@ HRESULT WINAPI D3DXCreateTextW(LPDIRECT3DDEVICE9 device,
if (FAILED(hr))
goto error;
hr = mesh->lpVtbl->LockVertexBuffer(mesh, D3DLOCK_DISCARD, (LPVOID *)&vertices);
hr = mesh->lpVtbl->LockVertexBuffer(mesh, 0, (LPVOID *)&vertices);
if (FAILED(hr))
goto error;
hr = mesh->lpVtbl->LockIndexBuffer(mesh, D3DLOCK_DISCARD, (LPVOID *)&faces);
hr = mesh->lpVtbl->LockIndexBuffer(mesh, 0, (LPVOID *)&faces);
if (FAILED(hr))
goto error;