=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Don' t pass the pitch to read_from_framebuffer.

Alexandre Julliard julliard at winehq.org
Mon Dec 2 13:37:52 CST 2013


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Fri Nov 29 12:59:15 2013 +0100

wined3d: Don't pass the pitch to read_from_framebuffer.

---

 dlls/wined3d/surface.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 0cdcbba..5ff3b0d 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3438,7 +3438,7 @@ HRESULT CDECL wined3d_surface_flip(struct wined3d_surface *surface, struct wined
 }
 
 /* Read the framebuffer back into the surface */
-static void read_from_framebuffer(struct wined3d_surface *surface, UINT pitch)
+static void read_from_framebuffer(struct wined3d_surface *surface)
 {
     struct wined3d_device *device = surface->resource.device;
     const struct wined3d_gl_info *gl_info;
@@ -3451,6 +3451,7 @@ static void read_from_framebuffer(struct wined3d_surface *surface, UINT pitch)
     BOOL bpp;
     BOOL srcIsUpsideDown;
     struct wined3d_bo_address data;
+    UINT pitch = wined3d_surface_get_pitch(surface);
 
     surface_get_memory(surface, &data);
 
@@ -5020,7 +5021,7 @@ static void surface_load_sysmem(struct wined3d_surface *surface,
 
     if (surface->flags & SFLAG_INDRAWABLE)
     {
-        read_from_framebuffer(surface, wined3d_surface_get_pitch(surface));
+        read_from_framebuffer(surface);
         return;
     }
 




More information about the wine-cvs mailing list