Stefan Dösinger : wined3d: Read offscreen render targets upside down when blitting them to a texture.
Module: wine Branch: master Commit: 20a07693b5c6feddab7560432d23c21a550dc7fb URL: http://source.winehq.org/git/wine.git/?a=commit;h=20a07693b5c6feddab7560432d... Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Thu Feb 15 13:51:55 2007 +0100 wined3d: Read offscreen render targets upside down when blitting them to a texture. --- dlls/wined3d/surface.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 57a5b8a..a42d4ef 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -2492,6 +2492,10 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT * rect.x1 = tmp; upsideDown = !upsideDown; } + if(!srcSwapchain) { + TRACE("Reading from an offscreen target\n"); + upsideDown = !upsideDown; + } if(rect.x2 - rect.x1 != srect.x2 - srect.x1) { stretchx = TRUE;
participants (1)
-
Alexandre Julliard