Michael Mc Donnell : d3dx9: Use 0 instead of D3DLOCK_DISCARD in D3DXCreateCylinder.
Alexandre Julliard
julliard at winehq.org
Wed Aug 31 13:19:22 CDT 2011
Module: wine
Branch: master
Commit: bae50905c513decb3fd3755771a7c1492f65887d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bae50905c513decb3fd3755771a7c1492f65887d
Author: Michael Mc Donnell <michael at mcdonnell.dk>
Date: Fri Aug 19 19:04:40 2011 +0200
d3dx9: Use 0 instead of D3DLOCK_DISCARD in D3DXCreateCylinder.
---
dlls/d3dx9_36/mesh.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dx9_36/mesh.c b/dlls/d3dx9_36/mesh.c
index 6fc3ef5..d07d4bd 100644
--- a/dlls/d3dx9_36/mesh.c
+++ b/dlls/d3dx9_36/mesh.c
@@ -4232,14 +4232,14 @@ HRESULT WINAPI D3DXCreateCylinder(LPDIRECT3DDEVICE9 device, FLOAT radius1, FLOAT
return hr;
}
- hr = cylinder->lpVtbl->LockVertexBuffer(cylinder, D3DLOCK_DISCARD, (LPVOID *)&vertices);
+ hr = cylinder->lpVtbl->LockVertexBuffer(cylinder, 0, (LPVOID *)&vertices);
if (FAILED(hr))
{
cylinder->lpVtbl->Release(cylinder);
return hr;
}
- hr = cylinder->lpVtbl->LockIndexBuffer(cylinder, D3DLOCK_DISCARD, (LPVOID *)&faces);
+ hr = cylinder->lpVtbl->LockIndexBuffer(cylinder, 0, (LPVOID *)&faces);
if (FAILED(hr))
{
cylinder->lpVtbl->UnlockVertexBuffer(cylinder);
More information about the wine-cvs
mailing list