From f229da5468b36016d05c2f444805fd8a12be6fab Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 14 Mar 2013 18:57:07 +0000 Subject: [PATCH] build on Cg versions prior to 2.2 --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 4940efdd79..41d7100f7f 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -1795,6 +1795,7 @@ reset() { if (GLCAT.is_debug()) { // Temp ifdef: this crashes Mesa. #ifndef OSMESA_MAJOR_VERSION +#if CG_VERSION_NUM >= 2200 GLCAT.debug() << "Supported Cg profiles:\n"; int num_profiles = cgGetNumSupportedProfiles(); for (int i = 0; i < num_profiles; ++i) { @@ -1803,6 +1804,7 @@ reset() { GLCAT.debug() << " " << cgGetProfileString(profile) << "\n"; } } +#endif // CG_VERSION_NUM >= 2200 GLCAT.debug() << "\nCg vertex profile = " << cgGetProfileString(vertex_profile) << " id = " << vertex_profile