missing ifdefs

This commit is contained in:
David Rose 2006-02-28 23:55:37 +00:00
parent e89d02c9c5
commit fe4ac01e18

View File

@ -20,6 +20,7 @@
TypeHandle CLP(ShaderContext)::_type_handle; TypeHandle CLP(ShaderContext)::_type_handle;
#ifdef HAVE_CGGL
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Function: cg_type_to_panda_type // Function: cg_type_to_panda_type
// Access: Public, Static // Access: Public, Static
@ -40,7 +41,9 @@ cg_type_to_panda_type(CGtype n) {
default: return ShaderContext::SAT_unknown; default: return ShaderContext::SAT_unknown;
} }
} }
#endif // HAVE_CGGL
#ifdef HAVE_CGGL
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Function: cg_dir_to_panda_dir // Function: cg_dir_to_panda_dir
// Access: Public, Static // Access: Public, Static
@ -55,6 +58,7 @@ cg_dir_to_panda_dir(CGenum n) {
default: return ShaderContext::SAD_unknown; default: return ShaderContext::SAD_unknown;
} }
} }
#endif // HAVE_CGGL
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Function: GLShaderContext::Constructor // Function: GLShaderContext::Constructor
@ -121,6 +125,7 @@ CLP(ShaderContext)(ShaderExpansion *s, GSG *gsg) : ShaderContext(s) {
GLCAT.error() << s->get_name() << ": unrecognized shader language " << header << "\n"; GLCAT.error() << s->get_name() << ": unrecognized shader language " << header << "\n";
} }
#ifdef HAVE_CGGL
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Function: Shader::report_cg_compile_errors // Function: Shader::report_cg_compile_errors
// Access: Public, Static // Access: Public, Static
@ -149,6 +154,7 @@ report_cg_compile_errors(const string &file, CGcontext ctx)
} }
} }
} }
#endif // HAVE_CGGL
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
// Function: GLShaderContext::suggest_cg_profile // Function: GLShaderContext::suggest_cg_profile