mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
properly handle HAVE_CG
This commit is contained in:
parent
063e53f658
commit
b978d45af5
@ -5722,7 +5722,7 @@ bool DXGraphicsStateGuardian9::
|
|||||||
get_supports_cg_profile(const string &name) const {
|
get_supports_cg_profile(const string &name) const {
|
||||||
#ifndef HAVE_CG
|
#ifndef HAVE_CG
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#else
|
||||||
CGprofile profile = cgGetProfile(name.c_str());
|
CGprofile profile = cgGetProfile(name.c_str());
|
||||||
|
|
||||||
if (profile ==CG_PROFILE_UNKNOWN) {
|
if (profile ==CG_PROFILE_UNKNOWN) {
|
||||||
@ -5730,6 +5730,7 @@ get_supports_cg_profile(const string &name) const {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return cgD3D9IsProfileSupported(cgGetProfile(name.c_str()));
|
return cgD3D9IsProfileSupported(cgGetProfile(name.c_str()));
|
||||||
|
#endif // HAVE_CG
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user