wined3d: Use the HDC from the acquired context to call SwapBuffer().

These should be the same, but this way the relation is clearer.
This commit is contained in:
Henri Verbeet 2010-02-04 18:30:08 +01:00 committed by Alexandre Julliard
parent d0afc7567b
commit ba8e6f713b
1 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
IWineD3DSurface_BltFast(This->backBuffer[0], 0, 0, This->device->logo_surface, NULL, WINEDDBLTFAST_SRCCOLORKEY);
}
TRACE("presetting HDC %p\n", This->context[0]->hdc);
TRACE("Presenting HDC %p.\n", context->hdc);
render_to_fbo = This->render_to_fbo;
@ -341,7 +341,7 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
}
if (This->num_contexts > 1) wglFinish();
SwapBuffers(This->context[0]->hdc); /* TODO: cycle through the swapchain buffers */
SwapBuffers(context->hdc); /* TODO: cycle through the swapchain buffers */
TRACE("SwapBuffers called, Starting new frame\n");
/* FPS support */