diff --git a/tools/bin/shaderc.exe b/tools/bin/shaderc.exe index 5aa28914..8b505447 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 e214dcab..6b69a3ad 100644 --- a/tools/shaderc/shaderc.cpp +++ b/tools/shaderc/shaderc.cpp @@ -1038,8 +1038,19 @@ struct Preprocessor if (NULL != _includeDir) { + char* start = scratch(_includeDir); + + for (char* split = strchr(start, ';'); NULL != split; split = strchr(start, ';')) + { + *split = '\0'; + m_tagptr->tag = FPPTAG_INCLUDE_DIR; + m_tagptr->data = start; + m_tagptr++; + start = split + 1; + } + m_tagptr->tag = FPPTAG_INCLUDE_DIR; - m_tagptr->data = scratch(_includeDir); + m_tagptr->data = start; m_tagptr++; } @@ -1250,7 +1261,7 @@ void help(const char* _error = NULL) "\n" "Options:\n" " -f Input file path.\n" - " -i Include path.\n" + " -i Include path (for multiple paths use semicolon).\n" " -o Output file path.\n" " --bin2c Generate C header file.\n" " --depends Generate makefile style depends file.\n"