wined3d: Fix a copy / paste mistake.

This commit is contained in:
Stefan Dösinger 2015-05-07 16:19:15 +02:00 committed by Alexandre Julliard
parent 298216f1b6
commit 0356cbfab9
1 changed files with 1 additions and 1 deletions

View File

@ -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;