Browse Source

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 years ago
parent
commit
d69d393e4c
1 changed files with 3 additions and 3 deletions
  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._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.
     // Bug workaround for radeons.
     if (_shader_caps._active_fprofile == CG_PROFILE_ARBFP1) {
     if (_shader_caps._active_fprofile == CG_PROFILE_ARBFP1) {