From b5affa6d3c7da3bc7991ea2f2a09167e8a397788 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Mon, 27 Apr 2015 17:39:09 +0200 Subject: [PATCH] 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. --- dlls/wined3d/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index 0822f615026..85723787059 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -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