From 0398fe5f66f2f84225ac4bb9ce634cfe192e4a9d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 23 Feb 2009 17:49:10 -0500 Subject: [PATCH] Current working directory should always be in the include path. --- utils/mojoshader-compiler.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/mojoshader-compiler.c b/utils/mojoshader-compiler.c index 580ef3c8..bc091d2f 100644 --- a/utils/mojoshader-compiler.c +++ b/utils/mojoshader-compiler.c @@ -210,6 +210,10 @@ int main(int argc, char **argv) MOJOSHADER_preprocessorDefine *defs = NULL; unsigned int defcount = 0; + include_paths = (const char **) malloc(sizeof (char *)); + include_paths[0] = "."; + include_path_count = 1; + for (i = 1; i < argc; i++) { const char *arg = argv[i];