Michael Mc Donnell : d3dx9: Use 0 instead of D3DLOCK_DISCARD in D3DXCreateSphere.

Alexandre Julliard julliard at winehq.org
Wed Aug 31 13:19:21 CDT 2011


Module: wine
Branch: master
Commit: d6a7c2cce0a009e788539c5dfa50a072a370ce0a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d6a7c2cce0a009e788539c5dfa50a072a370ce0a

Author: Michael Mc Donnell <michael at mcdonnell.dk>
Date:   Fri Aug 19 19:03:52 2011 +0200

d3dx9: Use 0 instead of D3DLOCK_DISCARD in D3DXCreateSphere.

---

 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 c5ad7b9..6fc3ef5 100644
--- a/dlls/d3dx9_36/mesh.c
+++ b/dlls/d3dx9_36/mesh.c
@@ -4060,14 +4060,14 @@ HRESULT WINAPI D3DXCreateSphere(LPDIRECT3DDEVICE9 device, FLOAT radius, UINT sli
         return hr;
     }
 
-    hr = sphere->lpVtbl->LockVertexBuffer(sphere, D3DLOCK_DISCARD, (LPVOID *)&vertices);
+    hr = sphere->lpVtbl->LockVertexBuffer(sphere, 0, (LPVOID *)&vertices);
     if (FAILED(hr))
     {
         sphere->lpVtbl->Release(sphere);
         return hr;
     }
 
-    hr = sphere->lpVtbl->LockIndexBuffer(sphere, D3DLOCK_DISCARD, (LPVOID *)&faces);
+    hr = sphere->lpVtbl->LockIndexBuffer(sphere, 0, (LPVOID *)&faces);
     if (FAILED(hr))
     {
         sphere->lpVtbl->UnlockVertexBuffer(sphere);




More information about the wine-cvs mailing list