Commit 7b40fd64 authored by Allan Tong's avatar Allan Tong Committed by Alexandre Julliard

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

parent 3ed880ff
......@@ -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;
......
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