Module: wine Branch: master Commit: 6521fc78be1b2e5fa51cca971788ba4862d3363e URL: http://source.winehq.org/git/wine.git/?a=commit;h=6521fc78be1b2e5fa51cca9717...
Author: Matteo Bruni mbruni@codeweavers.com Date: Wed Jul 8 15:47:00 2015 +0200
wined3d: Use the correct texture coordinates in swapchain_blit() in the non-glBlitFramebuffer, NP2 case.
---
dlls/wined3d/swapchain.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 146f5d6..5a5ba6b 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -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))