wined3d: Pass the correct window to Present() in IWineD3DSurfaceImpl_Flip().

This commit is contained in:
Henri Verbeet 2010-04-06 20:05:17 +02:00 committed by Alexandre Julliard
parent 3b7774b37b
commit 83443273c1
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}