Browse Source

shaderc: Fixed return value on error.

bkaradzic 12 years ago
parent
commit
e93449571d
2 changed files with 2 additions and 2 deletions
  1. BIN
      tools/bin/shaderc.exe
  2. 2 2
      tools/shaderc/shaderc.cpp

BIN
tools/bin/shaderc.exe


+ 2 - 2
tools/shaderc/shaderc.cpp

@@ -1809,7 +1809,7 @@ int main(int _argc, const char* _argv[])
 					if (0 != writer.open(outFilePath) )
 					if (0 != writer.open(outFilePath) )
 					{
 					{
 						fprintf(stderr, "Unable to open output file '%s'.", outFilePath);
 						fprintf(stderr, "Unable to open output file '%s'.", outFilePath);
-						return false;
+						return EXIT_FAILURE;
 					}
 					}
 
 
 					if (glsl)
 					if (glsl)
@@ -1849,7 +1849,7 @@ int main(int _argc, const char* _argv[])
 					if (0 != writer->open(outFilePath) )
 					if (0 != writer->open(outFilePath) )
 					{
 					{
 						fprintf(stderr, "Unable to open output file '%s'.", outFilePath);
 						fprintf(stderr, "Unable to open output file '%s'.", outFilePath);
-						return false;
+						return EXIT_FAILURE;
 					}
 					}
 
 
 					if (fragment)
 					if (fragment)