mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-14 05:50:51 +00:00
Fix OpenGL SPIR-V compilation using external glslc in tests
This commit is contained in:
@@ -317,6 +317,9 @@ std::vector<uint32_t> CompileShaderToSpv(const std::string &source_text, SPIRVTa
|
||||
case ShaderStage::comp: command_line += " -fshader-stage=comp"; break;
|
||||
}
|
||||
|
||||
if(target == SPIRVTarget::opengl)
|
||||
command_line += " --target-env=opengl";
|
||||
|
||||
char infile[MAX_PATH] = {};
|
||||
char outfile[MAX_PATH] = {};
|
||||
get_tmpnam(infile);
|
||||
|
||||
Reference in New Issue
Block a user