Fix T63698: Eevee crash after recent clang-format changes

Some GLSL compilers seem to not have problems with \ to break preprocessor
directives. I couldn't find other places with similar code, but fixing this
case by case is not ideal and the same issue may come up again.
This commit is contained in:
Brecht Van Lommel
2019-04-21 11:32:48 +02:00
parent 93c19a5a2c
commit c8fc23fdbe

View File

@@ -870,8 +870,10 @@ Closure closure_emission(vec3 rgb)
return cl;
}
# if defined(MESH_SHADER) && !defined(USE_ALPHA_HASH) && !defined(USE_ALPHA_CLIP) && \
!defined(SHADOW_SHADER) && !defined(USE_MULTIPLY)
/* Breaking this across multiple lines causes issues for some older GLSL compilers. */
/* clang-format off */
# if defined(MESH_SHADER) && !defined(USE_ALPHA_HASH) && !defined(USE_ALPHA_CLIP) && !defined(SHADOW_SHADER) && !defined(USE_MULTIPLY)
/* clang-format on */
layout(location = 0) out vec4 fragColor;
layout(location = 1) out vec4 ssrNormals;
layout(location = 2) out vec4 ssrData;