Commit 1635da4b authored by Karsten Elfenbein's avatar Karsten Elfenbein Committed by Alexandre Julliard

wined3d: BltOverride: Make sure that the content of the source rect is

copied to the correct position in the destination rect.
parent d6632dd0
......@@ -2637,9 +2637,9 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT *
} else {
glCopyTexSubImage2D(GL_TEXTURE_2D,
0, /* level */
rect.x1, This->currentDesc.Height - row - 1, /* xoffset, yoffset */
srect.x1, Src->currentDesc.Height - srect.y2 + row * yrel,
rect.x2, 1);
rect.x1, rect.y2 + rect.y1 - row - 1, /* xoffset, yoffset */
srect.x1, row - rect.y1,
rect.x2-rect.x1, 1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment