[PATCH 3/5] ddraw: Clear DDSD_PITCH on compressed surfaces.

Henri Verbeet hverbeet at codeweavers.com
Wed Jun 11 04:55:44 CDT 2014


---
 dlls/ddraw/surface.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index caa1a5c..4ffad8f 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -6119,6 +6119,7 @@ HRESULT ddraw_surface_init(struct ddraw_surface *surface, struct ddraw *ddraw, s
             || wined3d_desc.format == WINED3DFMT_DXT5)
     {
         desc->dwFlags |= DDSD_LINEARSIZE;
+        desc->dwFlags &= ~DDSD_PITCH;
         desc->u1.dwLinearSize = wined3d_surface_get_pitch(wined3d_surface) * ((desc->dwHeight + 3) / 4);
     }
     else if (!(desc->dwFlags & DDSD_LPSURFACE))
-- 
1.7.10.4




More information about the wine-patches mailing list