Skip to content

Commit

Permalink
Don't reference built-in include functions if we preprocessed them out.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 25, 2010
1 parent f966c37 commit 97aaea0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mojoshader_preprocessor.c
Expand Up @@ -2102,8 +2102,11 @@ const MOJOSHADER_preprocessData *MOJOSHADER_preprocess(const char *filename,

if (!m) m = MOJOSHADER_internal_malloc;
if (!f) f = MOJOSHADER_internal_free;

#if !MOJOSHADER_FORCE_INCLUDE_CALLBACKS
if (!include_open) include_open = MOJOSHADER_internal_include_open;
if (!include_close) include_close = MOJOSHADER_internal_include_close;
#endif

Preprocessor *pp = preprocessor_start(filename, source, sourcelen,
include_open, include_close,
Expand Down

0 comments on commit 97aaea0

Please sign in to comment.