[PATCH 1/5] wined3d: Use the correct texture coordinates in swapchain_blit() in the non-glBlitFramebuffer, NP2 case. (v2)

Matteo Bruni mbruni at codeweavers.com
Wed Jul 8 08:47:00 CDT 2015


---
v2: Simplify the patch.
---
 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))
-- 
2.3.6




More information about the wine-patches mailing list