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

Alexandre Julliard julliard at winehq.org
Fri Feb 5 08:42:30 CST 2010


Module: wine
Branch: master
Commit: ba8e6f713bcae6ba3aa90061ddce0fa9069af25c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ba8e6f713bcae6ba3aa90061ddce0fa9069af25c

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Feb  4 18:30:08 2010 +0100

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

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 */




More information about the wine-cvs mailing list