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
This commit is contained in:
rdb 2023-01-31 17:38:02 +01:00
parent 52c7d6bddb
commit d69d393e4c

View File

@ -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) {