Commit ba8e6f71 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

These should be the same, but this way the relation is clearer.
parent d0afc756
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment