Browse Source

Fixed shaderc arguments.

bkaradzic 13 years ago
parent
commit
391ebaefc3
2 changed files with 4 additions and 4 deletions
  1. BIN
      tools/bin/shaderc.exe
  2. 4 4
      tools/shaderc/shaderc.cpp

BIN
tools/bin/shaderc.exe


+ 4 - 4
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");