Skip to content
Permalink
Browse files
Allow preshader support to be #ifdef'd out, to reduce binary size.
  • Loading branch information
icculus committed May 31, 2011
1 parent 2d3e8a4 commit 43fa79caba37eb41b17c0050c316637fba7dee43

File 3 of 3 in 43fa79c

@@ -60,7 +60,6 @@
#define SUPPORT_PROFILE_ARB1_NV 1
#endif


#if SUPPORT_PROFILE_ARB1_NV && !SUPPORT_PROFILE_ARB1
#error nv profiles require arb1 profile. Fix your build.
#endif
@@ -70,6 +69,20 @@
#endif


// Other stuff you can disable...

// This removes the preshader parsing and execution code. You can save some
// bytes if you have normal shaders and not Effect files.
#ifndef SUPPORT_PRESHADERS
#define SUPPORT_PRESHADERS 1
#endif

#if SUPPORT_PRESHADERS
void MOJOSHADER_runPreshader(const MOJOSHADER_preshader *, float *);
#else
#define MOJOSHADER_runPreshader(a, b)
#endif


// Get basic wankery out of the way here...

0 comments on commit 43fa79c

Please sign in to comment.