Skip to content
Permalink
Browse files
Allow compiler to strip disabled glsl120 and nvX profiles as dead code.
  • Loading branch information
icculus committed Dec 30, 2009
1 parent 2157df2 commit 10fb4394ee8d65ec8f7bda8a2c703a26d84decbe

File 2 of 3 in 10fb439

@@ -48,10 +48,28 @@
#define SUPPORT_PROFILE_GLSL 1
#endif

#ifndef SUPPORT_PROFILE_GLSL120
#define SUPPORT_PROFILE_GLSL120 1
#endif

#ifndef SUPPORT_PROFILE_ARB1
#define SUPPORT_PROFILE_ARB1 1
#endif

#ifndef SUPPORT_PROFILE_ARB1_NV
#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

#if SUPPORT_PROFILE_GLSL120 && !SUPPORT_PROFILE_GLSL
#error glsl120 profile requires glsl profile. Fix your build.
#endif



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

0 comments on commit 10fb439

Please sign in to comment.