diff --git a/util/test/demos/test_common.cpp b/util/test/demos/test_common.cpp index 2f0d6cebc..ff3b86aa1 100644 --- a/util/test/demos/test_common.cpp +++ b/util/test/demos/test_common.cpp @@ -317,6 +317,9 @@ std::vector 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);