[PATCH] wined3d: Fix a copy / paste mistake.

Stefan Dösinger stefan at codeweavers.com
Thu May 7 09:19:15 CDT 2015


This fixes bug 38547.
---
 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 e7dac9b..5939973 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -3895,7 +3895,7 @@ BOOL wined3d_format_convert_color_to_float(const struct wined3d_format *format,
         case WINED3DFMT_R16G16_UNORM:
         case WINED3DFMT_B10G10R10A2_UNORM:
             float_color->r = color_to_float(color, format->red_size, format->red_offset);
-            float_color->g = color_to_float(color, format->green_size, format->green_size);
+            float_color->g = color_to_float(color, format->green_size, format->green_offset);
             float_color->b = color_to_float(color, format->blue_size, format->blue_offset);
             float_color->a = color_to_float(color, format->alpha_size, format->alpha_offset);
             return TRUE;
-- 
2.3.6




More information about the wine-patches mailing list