[PATCH 5/5] wined3d: Use the HDC from the acquired context to call SwapBuffer().
Henri Verbeet
hverbeet at codeweavers.com
Thu Feb 4 11:30:08 CST 2010
These should be the same, but this way the relation is clearer.
---
dlls/wined3d/swapchain.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c
index 838d461..cbdb961 100644
--- a/dlls/wined3d/swapchain.c
+++ b/dlls/wined3d/swapchain.c
@@ -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 */
--
1.6.4.4
More information about the wine-patches
mailing list