From 1c4a94b0babeebbdc99d04da0208bdde0dd6f1e8 Mon Sep 17 00:00:00 2001 From: "H. Verbeet" Date: Tue, 7 Feb 2006 12:26:26 +0100 Subject: [PATCH] wined3d: Don't set the container to the device for standalone surfaces. --- dlls/wined3d/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 635dd5b0de8..f814973bce9 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -725,7 +725,8 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateSurface(IWineD3DDevice *iface, UINT Wid /** Create and initialise the surface resource **/ 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.Height = Height; -- 2.11.4.GIT