From b978d45af5ebca57f8ffc168c9e8300f2a2bf5be Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 9 Jul 2010 00:45:52 +0000 Subject: [PATCH] properly handle HAVE_CG --- panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx index 1dfd1f3bb8..53548a22c4 100755 --- a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx +++ b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx @@ -5722,7 +5722,7 @@ bool DXGraphicsStateGuardian9:: 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) { @@ -5730,6 +5730,7 @@ get_supports_cg_profile(const string &name) const { return false; } return cgD3D9IsProfileSupported(cgGetProfile(name.c_str())); +#endif // HAVE_CG } ////////////////////////////////////////////////////////////////////