mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
compilation errors
This commit is contained in:
parent
1708bea71b
commit
848d439f72
@ -45,10 +45,10 @@ get_filename(const ShaderType &type) const {
|
||||
// Access: Public
|
||||
// Description: Return the Shader's text for the given shader type.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE const string Shader::
|
||||
INLINE const string &Shader::
|
||||
get_text(const ShaderType &type) const {
|
||||
if (_text->_separate) {
|
||||
nassertr(type != ST_none || !_text->_shared.empty(), "");
|
||||
nassertr(type != ST_none || !_text->_shared.empty(), _text->_shared);
|
||||
switch (type) {
|
||||
case ST_vertex:
|
||||
return _text->_vertex;
|
||||
|
@ -468,6 +468,7 @@ cp_optimize_mat_spec(ShaderMatSpec &spec) {
|
||||
spec._dep[1] = cp_dependency(spec._part[1]);
|
||||
}
|
||||
|
||||
#ifdef HAVE_CG
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: Shader::cg_recurse_parameters
|
||||
// Access: Public
|
||||
@ -519,6 +520,7 @@ void Shader::cg_recurse_parameters(CGparameter parameter,
|
||||
}
|
||||
} while((parameter = cgGetNextParameter(parameter))!= 0);
|
||||
}
|
||||
#endif // HAVE_CG
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: Shader::compile_parameter
|
||||
|
Loading…
x
Reference in New Issue
Block a user