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

This commit is contained in:
Henri Verbeet 2009-01-16 10:14:25 +01:00 committed by Alexandre Julliard
parent 558cc750c4
commit b5eaca542e
1 changed files with 1 additions and 1 deletions

View File

@ -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,