wined3d: Set swapchain container before flagging front buffer with SFLAG_INDRAWABLE.
This commit is contained in:
parent
3ed880ff9d
commit
7b40fd645d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue