wined3d: Add a trailing '\n' to a couple of shader_addline() calls.
Francois Gouget
fgouget at free.fr
Thu Jun 26 07:08:59 CDT 2008
---
The code probably works just fine without them, but all the other calls
to shader_addline() have them so I don't think these should be
exceptions.
dlls/wined3d/glsl_shader.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 6729977..1f5df18 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -2834,8 +2834,8 @@ static void handle_ps3_input(SHADER_BUFFER *buffer, semantic *semantics_in, sema
if (!semantics_out) {
/* Save gl_FrontColor & gl_FrontSecondaryColor before overwriting them. */
- shader_addline(buffer, "vec4 front_color = gl_FrontColor;");
- shader_addline(buffer, "vec4 front_secondary_color = gl_FrontSecondaryColor;");
+ shader_addline(buffer, "vec4 front_color = gl_FrontColor;\n");
+ shader_addline(buffer, "vec4 front_secondary_color = gl_FrontSecondaryColor;\n");
}
for(i = 0; i < MAX_REG_INPUT; i++) {
--
1.5.5.3
More information about the wine-patches
mailing list