(slang) slang_process: preset alias setting has higher priority.

This commit is contained in:
aliaspider 2018-02-03 23:35:04 +01:00
parent 76d07cd6a7
commit 0e159a0ec0

View File

@ -313,7 +313,7 @@ bool slang_process(
if (!slang_preprocess_parse_parameters(output.meta, shader_info))
return false;
if (!output.meta.name.empty())
if (!*pass.alias && !output.meta.name.empty())
strncpy(pass.alias, output.meta.name.c_str(), sizeof(pass.alias) - 1);
out->format = output.meta.rt_format;