wined3d: Take hDestWindowOverride into account in IWineGDISwapChainImpl_Present().

oldstable
Henri Verbeet 2011-04-12 18:28:42 +02:00 committed by Alexandre Julliard
parent 926dfc5c49
commit 7ace689742
1 changed files with 2 additions and 0 deletions

View File

@ -757,6 +757,8 @@ static HRESULT WINAPI IWineGDISwapChainImpl_Present(IWineD3DSwapChain *iface,
IWineD3DSwapChainImpl *swapchain = (IWineD3DSwapChainImpl *)iface;
IWineD3DSurfaceImpl *front, *back;
IWineD3DBaseSwapChainImpl_SetDestWindowOverride(iface, hDestWindowOverride);
if (!swapchain->back_buffers)
{
WARN("Swapchain doesn't have a backbuffer, returning WINED3DERR_INVALIDCALL\n");