Commit 6521fc78 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Use the correct texture coordinates in swapchain_blit() in the…

wined3d: Use the correct texture coordinates in swapchain_blit() in the non-glBlitFramebuffer, NP2 case.
parent b45395f5
......@@ -351,10 +351,10 @@ static void swapchain_blit(const struct wined3d_swapchain *swapchain,
if (backbuffer->container->flags & WINED3D_TEXTURE_NORMALIZED_COORDS)
{
tex_left /= src_w;
tex_right /= src_w;
tex_top /= src_h;
tex_bottom /= src_h;
tex_left /= backbuffer->pow2Width;
tex_right /= backbuffer->pow2Width;
tex_top /= backbuffer->pow2Height;
tex_bottom /= backbuffer->pow2Height;
}
if (is_complex_fixup(backbuffer->resource.format->color_fixup))
......
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