Fix compilation error when compiling without support for Cg

This commit is contained in:
rdb 2010-05-05 15:19:41 +00:00
parent 01b720ceb9
commit 045f7acb41

View File

@ -9595,7 +9595,7 @@ bool CLP(GraphicsStateGuardian)::
get_supports_cg_profile(const string &name) const {
#ifndef HAVE_CG
return false;
#endif
#else
CGprofile profile = cgGetProfile(name.c_str());
if (profile == CG_PROFILE_UNKNOWN) {
@ -9603,6 +9603,7 @@ get_supports_cg_profile(const string &name) const {
return false;
}
return cgGLIsProfileSupported(profile);
#endif
}
////////////////////////////////////////////////////////////////////