Skip to content

Commit

Permalink
Current working directory should always be in the include path.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 23, 2009
1 parent 5414b85 commit 0398fe5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/mojoshader-compiler.c
Expand Up @@ -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];
Expand Down

0 comments on commit 0398fe5

Please sign in to comment.