Henri Verbeet : d3d9: Properly test for dynamic usage in device_parent_CreateSurface().

Alexandre Julliard julliard at winehq.org
Fri Jan 16 07:41:57 CST 2009


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Fri Jan 16 10:14:25 2009 +0100

d3d9: Properly test for dynamic usage in device_parent_CreateSurface().

---

 dlls/d3d9/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index ec796d2..768bf9d 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -1807,7 +1807,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
             "\tpool %#x, level %u, face %u, surface %p\n",
             iface, superior, width, height, format, usage, pool, level, face, surface);
 
-    if (pool == D3DPOOL_DEFAULT && usage != D3DUSAGE_DYNAMIC) lockable = FALSE;
+    if (pool == D3DPOOL_DEFAULT && !(usage & D3DUSAGE_DYNAMIC)) lockable = FALSE;
 
     hr = IDirect3DDevice9Impl_CreateSurface((IDirect3DDevice9Ex *)This, width, height,
             format, lockable, FALSE /* Discard */, level, (IDirect3DSurface9 **)&d3d_surface,




More information about the wine-cvs mailing list