From 1787e9ce1e2a2d948cd92e3c9eeffa4fdf705089 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 1 Jun 2009 23:32:00 +0000 Subject: [PATCH] better fix for cg 1.x --- panda/src/glstuff/glGraphicsStateGuardian_src.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx index 19f15a127b..e937160afd 100644 --- a/panda/src/glstuff/glGraphicsStateGuardian_src.cxx +++ b/panda/src/glstuff/glGraphicsStateGuardian_src.cxx @@ -762,12 +762,16 @@ reset() { _shader_caps._active_fprofile = (int)cgGLGetLatestProfile(CG_GL_FRAGMENT); #ifdef CG_CL_GEOMETRY _shader_caps._active_gprofile = (int)cgGLGetLatestProfile(CG_GL_GEOMETRY); // CG2 CHANGE +#else + _shader_caps._active_gprofile = (int)0; #endif } _shader_caps._ultimate_vprofile = (int)CG_PROFILE_VP40; _shader_caps._ultimate_fprofile = (int)CG_PROFILE_FP40; #ifdef CG_PROFILE_GPU_CP _shader_caps._ultimate_gprofile = (int)CG_PROFILE_GPU_GP; // CG2 CHANGE +#else + _shader_caps._ultimate_gprofile = (int)0; #endif _glBindProgram = (PFNGLBINDPROGRAMARBPROC) get_extension_func(GLPREFIX_QUOTED, "BindProgramARB");