Module: wine Branch: master Commit: 0356cbfab99e2a3dc815f24af11c712814af60a2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=0356cbfab99e2a3dc815f24af1...
Author: Stefan Dösinger stefan@codeweavers.com Date: Thu May 7 16:19:15 2015 +0200
wined3d: Fix a copy / paste mistake.
---
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 f2088bf..3090131 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -3656,7 +3656,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;