ソースを参照

Check in cg-glsl-version variable.

rdb 11 年 前
コミット
c9e00acd4b
2 ファイル変更9 行追加2 行削除
  1. 7 0
      panda/src/gobj/config_gobj.cxx
  2. 2 2
      panda/src/gobj/config_gobj.h

+ 7 - 0
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();

+ 2 - 2
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;
 
-#endif
-
+extern EXPCL_PANDA_GOBJ ConfigVariableString cg_glsl_version;
 
+#endif