wined3d: Add a trailing '\n' to a generated shader line.

This commit is contained in:
Francois Gouget 2015-05-02 23:50:59 +02:00 committed by Alexandre Julliard
parent cb16c70602
commit f129e2fbb1
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{