Commit b5affa6d authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Set spotlight direction .w component to 0.0f.

It's a direction so we don't want to get translations applied to it. The variable is only used internally.
parent 50009c4a
......@@ -1550,7 +1550,7 @@ HRESULT CDECL wined3d_device_set_light(struct wined3d_device *device,
object->lightDirn[0] = light->direction.x;
object->lightDirn[1] = light->direction.y;
object->lightDirn[2] = light->direction.z;
object->lightDirn[3] = 1.0f;
object->lightDirn[3] = 0.0f;
/* opengl-ish and d3d-ish spot lights use too different models
* for the light "intensity" as a function of the angle towards
......
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