shaderbuilder: Insert newlines directly after defines
Instead of doing that in the loop in the last interation, we can just do it after the loop.
This commit is contained in:
@@ -172,11 +172,10 @@ gsk_shader_builder_compile_shader (GskShaderBuilder *builder,
|
|||||||
g_string_append_c (code, ' ');
|
g_string_append_c (code, ' ');
|
||||||
g_string_append (code, value);
|
g_string_append (code, value);
|
||||||
g_string_append_c (code, '\n');
|
g_string_append_c (code, '\n');
|
||||||
|
|
||||||
if (i == builder->defines->len - 2)
|
|
||||||
g_string_append_c (code, '\n');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_string_append_c (code, '\n');
|
||||||
|
|
||||||
if (!lookup_shader_code (code, builder->resource_base_path, shader_preamble, error))
|
if (!lookup_shader_code (code, builder->resource_base_path, shader_preamble, error))
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user