mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
missing ifdefs
This commit is contained in:
parent
e89d02c9c5
commit
fe4ac01e18
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user