Module: wine Branch: refs/heads/master Commit: 1c4a94b0babeebbdc99d04da0208bdde0dd6f1e8 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=1c4a94b0babeebbdc99d04da...
Author: H. Verbeet hverbeet@gmail.com Date: Tue Feb 7 12:26:26 2006 +0100
wined3d: Don't set the container to the device for standalone surfaces.
---
dlls/wined3d/device.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 635dd5b..f814973 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -725,7 +725,8 @@ HRESULT WINAPI IWineD3DDeviceImpl_Creat
/** 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;