Module: wine Branch: master Commit: b5eaca542e5e8265d535532c1c1c0a3c531de65c URL: http://source.winehq.org/git/wine.git/?a=commit;h=b5eaca542e5e8265d535532c1c...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Fri Jan 16 10:14:25 2009 +0100
d3d8: Properly test for dynamic usage in device_parent_CreateSurface().
---
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,