Skip to content

Commit

Permalink
Don't append SPIR-V onto existing SPIR-V when recompiling shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
AnyOldName3 committed Dec 23, 2024
1 parent 13bb7b1 commit 02dcb09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vsg/utils/ShaderCompiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ bool ShaderCompiler::compile(ShaderStages& shaders, const std::vector<std::strin
}
}

vsg_shader->module->code.clear();
glslang::GlslangToSpv(*(program->getIntermediate((EShLanguage)eshl_stage)), vsg_shader->module->code, &logger, &spvOptions);
}
}
Expand Down

0 comments on commit 02dcb09

Please sign in to comment.