diff --git a/panda/src/gobj/config_gobj.cxx b/panda/src/gobj/config_gobj.cxx index 9295d6475a..c60c75fb95 100644 --- a/panda/src/gobj/config_gobj.cxx +++ b/panda/src/gobj/config_gobj.cxx @@ -510,6 +510,13 @@ ConfigVariableInt lens_geom_segments "lens; for a normal perspective or orthographic lens, the " "wireframe is not subdivided.")); +ConfigVariableString cg_glsl_version +("cg-glsl-version", "", + PRC_DESC("If this is set, it forces the Cg compiler to generate GLSL " + "code conforming to the given GLSL version when using the " + "glslv, glslf or glslg profiles. Use this when you are having " + "problems with these profiles. Example values are 120 or 150.")); + ConfigureFn(config_gobj) { AnimateVerticesRequest::init_type(); BufferContext::init_type(); diff --git a/panda/src/gobj/config_gobj.h b/panda/src/gobj/config_gobj.h index 6184768dc1..c6e34fafa5 100644 --- a/panda/src/gobj/config_gobj.h +++ b/panda/src/gobj/config_gobj.h @@ -99,6 +99,6 @@ extern EXPCL_PANDA_GOBJ ConfigVariableInt adaptive_lru_max_updates_per_frame; extern EXPCL_PANDA_GOBJ ConfigVariableDouble async_load_delay; extern EXPCL_PANDA_GOBJ ConfigVariableInt lens_geom_segments; +extern EXPCL_PANDA_GOBJ ConfigVariableString cg_glsl_version; + #endif - -