Commit bae50905 authored by Michael Mc Donnell's avatar Michael Mc Donnell Committed by Alexandre Julliard

d3dx9: Use 0 instead of D3DLOCK_DISCARD in D3DXCreateCylinder.

parent d6a7c2cc
...@@ -4232,14 +4232,14 @@ HRESULT WINAPI D3DXCreateCylinder(LPDIRECT3DDEVICE9 device, FLOAT radius1, FLOAT ...@@ -4232,14 +4232,14 @@ HRESULT WINAPI D3DXCreateCylinder(LPDIRECT3DDEVICE9 device, FLOAT radius1, FLOAT
return hr; return hr;
} }
hr = cylinder->lpVtbl->LockVertexBuffer(cylinder, D3DLOCK_DISCARD, (LPVOID *)&vertices); hr = cylinder->lpVtbl->LockVertexBuffer(cylinder, 0, (LPVOID *)&vertices);
if (FAILED(hr)) if (FAILED(hr))
{ {
cylinder->lpVtbl->Release(cylinder); cylinder->lpVtbl->Release(cylinder);
return hr; return hr;
} }
hr = cylinder->lpVtbl->LockIndexBuffer(cylinder, D3DLOCK_DISCARD, (LPVOID *)&faces); hr = cylinder->lpVtbl->LockIndexBuffer(cylinder, 0, (LPVOID *)&faces);
if (FAILED(hr)) if (FAILED(hr))
{ {
cylinder->lpVtbl->UnlockVertexBuffer(cylinder); cylinder->lpVtbl->UnlockVertexBuffer(cylinder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment