[PATCH 4/5] wined3d: Don't pass the pitch to read_from_framebuffer.
Stefan Dösinger
stefan at codeweavers.com
Fri Nov 29 05:59:15 CST 2013
---
dlls/wined3d/surface.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 089c4de..34e94e4 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;
}
--
1.8.3.2
More information about the wine-patches
mailing list