[PATCH 2/4] wined3d: Correct channel assignment in convert_r5g5_snorm_l6_unorm.

Stefan Dösinger stefan at codeweavers.com
Mon Mar 2 15:29:10 CST 2015


---
 dlls/wined3d/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 67457d5..e6cd4da 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -320,7 +320,7 @@ static void convert_r5g5_snorm_l6_unorm(const BYTE *src, BYTE *dst, UINT src_row
                 short v_conv = v + 16;
                 short u_conv = u + 16;
 
-                *Dest_s = ((v_conv << 11) & 0xf800) | ((l << 5) & 0x7e0) | (u_conv & 0x1f);
+                *Dest_s = ((u_conv << 11) & 0xf800) | ((l << 5) & 0x7e0) | (v_conv & 0x1f);
                 Dest_s += 1;
             }
         }
-- 
2.3.0




More information about the wine-patches mailing list