diff --git a/src/win32/fb_d3d9.cpp b/src/win32/fb_d3d9.cpp index ff1c0d9c6..2c29ac6ef 100644 --- a/src/win32/fb_d3d9.cpp +++ b/src/win32/fb_d3d9.cpp @@ -1300,7 +1300,7 @@ void D3DFB::Draw3DPart(bool copy3d) SUCCEEDED(FBTexture->LockRect (0, &lockrect, NULL, D3DLOCK_DISCARD))) || SUCCEEDED(FBTexture->LockRect (0, &lockrect, &texrect, 0))) { - if (lockrect.Pitch == Pitch) + if (lockrect.Pitch == Pitch && Pitch == Width) { memcpy (lockrect.pBits, MemBuffer, Width * Height); }