diff --git a/tools/bin/shaderc.exe b/tools/bin/shaderc.exe index 1cb9535de..1b6a01703 100644 Binary files a/tools/bin/shaderc.exe and b/tools/bin/shaderc.exe differ diff --git a/tools/shaderc/shaderc.cpp b/tools/shaderc/shaderc.cpp index 0797532cc..1b3e606bb 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -525,7 +525,7 @@ bool compileGLSLShader(bx::CommandLine& _cmdLine, const std::string& _code, bx:: const char* optimizedShader = glslopt_get_output(shader); - const char* profile = _cmdLine.findOption('p'); + const char* profile = _cmdLine.findOption('p', "profile"); if (NULL == profile) { writef(_writer, "#ifdef GL_ES\n"); @@ -549,7 +549,7 @@ bool compileGLSLShader(bx::CommandLine& _cmdLine, const std::string& _code, bx:: bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, bx::WriterI* _writer) { #if BX_PLATFORM_WINDOWS - const char* profile = _cmdLine.findOption('p'); + const char* profile = _cmdLine.findOption('p', "profile"); if (NULL == profile) { fprintf(stderr, "Shader profile must be specified.\n"); @@ -727,7 +727,7 @@ bool compileHLSLShaderDx9(bx::CommandLine& _cmdLine, const std::string& _code, b bool compileHLSLShaderDx11(bx::CommandLine& _cmdLine, const std::string& _code, bx::WriterI* _writer) { #if BX_PLATFORM_WINDOWS - const char* profile = _cmdLine.findOption('p'); + const char* profile = _cmdLine.findOption('p', "profile"); if (NULL == profile) { fprintf(stderr, "Shader profile must be specified.\n"); @@ -1686,7 +1686,7 @@ int main(int _argc, const char* _argv[]) if (glsl) { - const char* profile = cmdLine.findOption('p'); + const char* profile = cmdLine.findOption('p', "profile"); if (NULL == profile) { writef(&writer, "#ifdef GL_ES\n");