From b0c8b4dd95f0328c9cf61a3d06c7fb80b3f5047a Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 21 Oct 2010 12:40:43 +0200 Subject: [PATCH] wined3d: Flip destination coordinates when blitting to an offscreen target in arbfp_blit_surface(). --- dlls/wined3d/arb_program_shader.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index 3678f44d3b9..2623b5766ad 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);