Commit b5779999 authored by Paul Gofman's avatar Paul Gofman Committed by Alexandre Julliard

wined3d: Scale transformed position in compute_light().

parent e3aae365
......@@ -3436,8 +3436,8 @@ static void compute_light(struct wined3d_color *ambient, struct wined3d_color *d
float att;
wined3d_vec4_transform(&position_transformed, position, &ls->modelview_matrix);
wined3d_vec3_scale((struct wined3d_vec3 *)&position_transformed, 1.0f / position_transformed.w);
position_transformed_normalised = *(const struct wined3d_vec3 *)&position_transformed;
wined3d_vec3_scale(&position_transformed_normalised, 1.0f / position_transformed.w);
wined3d_vec3_normalise(&position_transformed_normalised);
if (normal)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment