diff --git a/src/compiler/glsl/glcpp/pp.c b/src/compiler/glsl/glcpp/pp.c index aadf899a7d0..db53e7dd165 100644 --- a/src/compiler/glsl/glcpp/pp.c +++ b/src/compiler/glsl/glcpp/pp.c @@ -195,11 +195,11 @@ remove_line_continuations(glcpp_parser_t *ctx, const char *shader) } } - search_start = backslash + 1; - if (backslash == NULL) break; + search_start = backslash + 1; + /* At each line continuation, (backslash followed by a * newline), copy all preceding text to the output, then * advance the shader pointer to the character after the