wined3d: Set swapchain container before flagging front buffer with SFLAG_INDRAWABLE.

This commit is contained in:
Allan Tong 2008-01-14 21:29:14 -05:00 committed by Alexandre Julliard
parent 3ed880ff9d
commit 7b40fd645d
1 changed files with 1 additions and 1 deletions

View File

@ -1495,8 +1495,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
&object->frontBuffer,
NULL /* pShared (always null)*/);
if (object->frontBuffer != NULL) {
IWineD3DSurface_ModifyLocation(object->frontBuffer, SFLAG_INDRAWABLE, TRUE);
IWineD3DSurface_SetContainer(object->frontBuffer, (IWineD3DBase *)object);
IWineD3DSurface_ModifyLocation(object->frontBuffer, SFLAG_INDRAWABLE, TRUE);
} else {
ERR("Failed to create the front buffer\n");
goto error;