Module: wine Branch: master Commit: 83443273c1caabec39ccf66fb36424ce23251105 URL: http://source.winehq.org/git/wine.git/?a=commit;h=83443273c1caabec39ccf66fb3...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Apr 6 20:05:17 2010 +0200
wined3d: Pass the correct window to Present() in IWineD3DSurfaceImpl_Flip().
---
dlls/wined3d/surface.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 40fdff3..a6d64dc 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -3343,7 +3343,8 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_Flip(IWineD3DSurface *iface, IWineD3DS }
/* Flipping a OpenGL surface -> Use WineD3DDevice::Present */ - hr = IWineD3DSwapChain_Present((IWineD3DSwapChain *) swapchain, NULL, NULL, 0, NULL, 0); + hr = IWineD3DSwapChain_Present((IWineD3DSwapChain *)swapchain, + NULL, NULL, swapchain->win_handle, NULL, 0); IWineD3DSwapChain_Release((IWineD3DSwapChain *) swapchain); return hr; }