wined3d: Fix specular alpha value in process_vertices_stride().

Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Paul Gofman 2019-05-22 12:39:27 +03:00 committed by Alexandre Julliard
parent fa9cf3fc2c
commit 43fec1bbe9
1 changed files with 2 additions and 3 deletions

View File

@ -3185,8 +3185,7 @@ static void wined3d_colour_from_mcs(struct wined3d_color *colour, enum wined3d_m
case WINED3D_MCS_COLOR2:
if (!(stream_info->use_map & (1u << WINED3D_FFP_SPECULAR)))
{
colour->r = colour->g = colour->b = 0.0f;
colour->a = 1.0f;
colour->r = colour->g = colour->b = colour->a = 0.0f;
return;
}
element = &stream_info->elements[WINED3D_FFP_SPECULAR];
@ -3840,7 +3839,7 @@ static HRESULT process_vertices_strided(const struct wined3d_device *device, DWO
specular_colour.r = specular.r * material_specular.r;
specular_colour.g = specular.g * material_specular.g;
specular_colour.b = specular.b * material_specular.b;
specular_colour.a = 1.0f;
specular_colour.a = ls.legacy_lighting ? 0.0f : material_specular.a;
}
else
{