[PATCH 1/4] wined3d: Flip destination coordinates when blitting to an offscreen target in arbfp_blit_surface().

Henri Verbeet hverbeet at codeweavers.com
Thu Oct 21 05:40:43 CDT 2010


---
 dlls/wined3d/arb_program_shader.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c
index 3678f44..2623b57 100644
--- a/dlls/wined3d/arb_program_shader.c
+++ b/dlls/wined3d/arb_program_shader.c
@@ -7174,6 +7174,11 @@ HRESULT arbfp_blit_surface(IWineD3DDeviceImpl *device, IWineD3DSurfaceImpl *src_
             ? dst_surface->container.u.swapchain : NULL;
     if (dst_swapchain && dst_surface == dst_swapchain->front_buffer)
         surface_translate_frontbuffer_coords(dst_surface, context->win_handle, &dst_rect);
+    else if (surface_is_offscreen(dst_surface))
+    {
+        dst_rect.top = dst_surface->currentDesc.Height - dst_rect.top;
+        dst_rect.bottom = dst_surface->currentDesc.Height - dst_rect.bottom;
+    }
 
     arbfp_blit_set((IWineD3DDevice *)device, src_surface);
 
-- 
1.7.2.2




More information about the wine-patches mailing list