From 56d12b9415c8daa424bee70fd72780b25ef20a1d Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 8 Apr 2009 09:58:52 -0500 Subject: [PATCH] wined3d: don't update the screen when gdi back buffers are unlocked --- dlls/wined3d/surface_gdi.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c index 0ed350e..0c36c90 100644 --- a/dlls/wined3d/surface_gdi.c +++ b/dlls/wined3d/surface_gdi.c @@ -194,7 +194,8 @@ IWineGDISurfaceImpl_UnlockRect(IWineD3DSurface *iface) /* Tell the swapchain to update the screen */ if (SUCCEEDED(IWineD3DSurface_GetContainer(iface, &IID_IWineD3DSwapChain, (void **)&swapchain))) { - x11_copy_to_screen(swapchain, &This->lockedRect); + if (This == swapchain->frontBuffer) + x11_copy_to_screen(swapchain, &This->lockedRect); IWineD3DSwapChain_Release((IWineD3DSwapChain *) swapchain); } -- 1.5.4.3