wined3d: Do not set the dynlock flag on all created surfaces.

This commit is contained in:
Stefan Dösinger 2007-05-26 19:45:02 +02:00 committed by Alexandre Julliard
parent 88c8128704
commit d88fe52564
1 changed files with 1 additions and 1 deletions

View File

@ -704,7 +704,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSurface(IWineD3DDevice *iface, U
object->pow2Height = pow2Height; object->pow2Height = pow2Height;
/* Flags */ /* Flags */
object->Flags = SFLAG_DYNLOCK; object->Flags = 0;
object->Flags |= (pow2Width != Width || pow2Height != Height) ? SFLAG_NONPOW2 : 0; object->Flags |= (pow2Width != Width || pow2Height != Height) ? SFLAG_NONPOW2 : 0;
object->Flags |= Discard ? SFLAG_DISCARD : 0; object->Flags |= Discard ? SFLAG_DISCARD : 0;
object->Flags |= (WINED3DFMT_D16_LOCKABLE == Format) ? SFLAG_LOCKABLE : 0; object->Flags |= (WINED3DFMT_D16_LOCKABLE == Format) ? SFLAG_LOCKABLE : 0;