Module: wine Branch: master Commit: 7b40fd645d7e86f1905e8fdbcddee78bdaef74a3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7b40fd645d7e86f1905e8fdbcd...
Author: Allan Tong actong88@gmail.com Date: Mon Jan 14 21:29:14 2008 -0500
wined3d: Set swapchain container before flagging front buffer with SFLAG_INDRAWABLE.
---
dlls/wined3d/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 84cbe89..a17dc9e 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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;