浏览代码

glgsg: Set ultimate Cg profiles to gp5vp/gp5fp/gp5gp

These support the most features, including cube map arrays (which aren't even supported in glslv/glslf)

This improves the quality of error messages, eg. using cube map arrays will no longer display a cryptic error about no overload of texCUBEARRAY() being available
rdb 2 年之前
父节点
当前提交
d69d393e4c
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      panda/src/glstuff/glGraphicsStateGuardian_src.cxx

+ 3 - 3
panda/src/glstuff/glGraphicsStateGuardian_src.cxx

@@ -1820,9 +1820,9 @@ reset() {
         _shader_caps._active_gprofile = (int)CG_PROFILE_GLSLG;
       }
     }
-    _shader_caps._ultimate_vprofile = (int)CG_PROFILE_VP40;
-    _shader_caps._ultimate_fprofile = (int)CG_PROFILE_FP40;
-    _shader_caps._ultimate_gprofile = (int)CG_PROFILE_GPU_GP;
+    _shader_caps._ultimate_vprofile = (int)CG_PROFILE_GP5VP;
+    _shader_caps._ultimate_fprofile = (int)CG_PROFILE_GP5FP;
+    _shader_caps._ultimate_gprofile = (int)CG_PROFILE_GP5GP;
 
     // Bug workaround for radeons.
     if (_shader_caps._active_fprofile == CG_PROFILE_ARBFP1) {