Commit 1c4a94b0 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

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

parent b994d057
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment