d3d8: Properly test for dynamic usage in device_parent_CreateSurface().
Henri Verbeet
hverbeet at codeweavers.com
Fri Jan 16 03:14:25 CST 2009
---
dlls/d3d8/device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c
index 6ee02a9..5ef6311 100644
--- a/dlls/d3d8/device.c
+++ b/dlls/d3d8/device.c
@@ -2299,7 +2299,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
iface, superior, width, height, format, usage, pool, level, face, surface);
- if (pool == WINED3DPOOL_DEFAULT && usage != WINED3DUSAGE_DYNAMIC) lockable = FALSE;
+ if (pool == WINED3DPOOL_DEFAULT && !(usage & WINED3DUSAGE_DYNAMIC)) lockable = FALSE;
hr = IDirect3DDevice8Impl_CreateSurface((IDirect3DDevice8 *)This, width, height,
format, lockable, FALSE /* Discard */, level, (IDirect3DSurface8 **)&d3d_surface,
--
1.6.0.6
--------------090103040903000304050906--
More information about the wine-patches
mailing list