diff --git a/gfx/drivers_shader/slang_process.cpp b/gfx/drivers_shader/slang_process.cpp index 7335f8d38e..fffa7c4485 100644 --- a/gfx/drivers_shader/slang_process.cpp +++ b/gfx/drivers_shader/slang_process.cpp @@ -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;