Browse Source

sm5 geometry programs

rdb 15 years ago
parent
commit
dd652284a4
1 changed files with 4 additions and 1 deletions
  1. 4 1
      panda/src/gobj/shader.cxx

+ 4 - 1
panda/src/gobj/shader.cxx

@@ -1849,7 +1849,10 @@ Shader(CPT(ShaderFile) filename, CPT(ShaderFile) text, const ShaderLanguage &lan
     _default_caps._active_fprofile = CG_PROFILE_UNKNOWN;
     _default_caps._ultimate_vprofile = cgGetProfile("glslv");
     _default_caps._ultimate_fprofile = cgGetProfile("glslf");
-    _default_caps._ultimate_gprofile = cgGetProfile("gp4gp");
+    _default_caps._ultimate_gprofile = cgGetProfile("glslg");
+    if (_default_caps._ultimate_gprofile == CG_PROFILE_UNKNOWN) {
+      _default_caps._ultimate_gprofile = cgGetProfile("gp4gp");
+    }
   }
 #endif