Current working directory should always be in the include path.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 23 Feb 2009 17:49:10 -0500
changeset 686 021241f2a237
parent 685 687e9def5cc6
child 687 bb36744480e8
Current working directory should always be in the include path.
utils/mojoshader-compiler.c
--- a/utils/mojoshader-compiler.c	Mon Feb 23 17:39:30 2009 -0500
+++ b/utils/mojoshader-compiler.c	Mon Feb 23 17:49:10 2009 -0500
@@ -210,6 +210,10 @@
     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];