Francois Gouget : wined3d: Add a trailing '\n' to a generated shader line.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon May 4 07:58:53 CDT 2015
Module: wine
Branch: master
Commit: f129e2fbb157457588a437ce595e5fb32240e46e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f129e2fbb157457588a437ce595e5fb32240e46e
Author: Francois Gouget <fgouget at free.fr>
Date: Sat May 2 23:50:59 2015 +0200
wined3d: Add a trailing '\n' to a generated shader line.
---
dlls/wined3d/glsl_shader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index b9d95e6..fe1cef1 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -5457,7 +5457,7 @@ static void shader_glsl_ffp_vertex_lighting(struct wined3d_string_buffer *buffer
shader_addline(buffer, "att = dot(dst.xyz, vec3(ffp_light[%u].c_att,"
" ffp_light[%u].l_att, ffp_light[%u].q_att));\n", i, i, i);
if (!legacy_lighting)
- shader_addline(buffer, "att = 1.0 / att;");
+ shader_addline(buffer, "att = 1.0 / att;\n");
shader_addline(buffer, "ambient += ffp_light[%u].ambient.xyz * att;\n", i);
if (!settings->normal)
{
More information about the wine-cvs
mailing list