wined3d: Don't set the container to the device for standalone surfaces.

This commit is contained in:
H. Verbeet 2006-02-07 12:26:26 +01:00 committed by Alexandre Julliard
parent b994d057ac
commit 1c4a94b0ba
1 changed files with 2 additions and 1 deletions

View File

@ -725,7 +725,8 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateSurface(IWineD3DDevice *iface, UINT Wid
/** Create and initialise the surface resource **/ /** Create and initialise the surface resource **/
D3DCREATERESOURCEOBJECTINSTANCE(object,Surface,D3DRTYPE_SURFACE, Size) D3DCREATERESOURCEOBJECTINSTANCE(object,Surface,D3DRTYPE_SURFACE, Size)
IWineD3DSurface_SetContainer((IWineD3DSurface *)object, (IWineD3DBase *)This); /* "Standalone" surface */
IWineD3DSurface_SetContainer((IWineD3DSurface *)object, NULL);
object->currentDesc.Width = Width; object->currentDesc.Width = Width;
object->currentDesc.Height = Height; object->currentDesc.Height = Height;