Fix rvalue being passed as a reference.

This commit is contained in:
Joel Linn 2020-12-28 19:53:49 +01:00 committed by Triang3l
parent 74cb0117cf
commit 7943702618
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ int shader_compiler_main(const std::vector<std::string>& args) {
auto shader = std::make_unique<Shader>( auto shader = std::make_unique<Shader>(
shader_type, ucode_data_hash, ucode_dwords.data(), ucode_dwords.size()); shader_type, ucode_data_hash, ucode_dwords.data(), ucode_dwords.size());
shader->AnalyzeUcode(StringBuffer()); StringBuffer buffer;
shader->AnalyzeUcode(buffer);
std::unique_ptr<ShaderTranslator> translator; std::unique_ptr<ShaderTranslator> translator;
if (cvars::shader_output_type == "spirv" || if (cvars::shader_output_type == "spirv" ||