Browse Source

glgsg: change ultimate profile from vp40/fp40 to glslv/glslv

vp40 is just not "ultimate" enough.  We can alternatively pick gp5vp/gp5fp if glslv/glslf is inadequate.
rdb 5 years ago
parent
commit
edc31ce9ca
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

@@ -1776,9 +1776,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_GLSLV;
+    _shader_caps._ultimate_fprofile = (int)CG_PROFILE_GLSLF;
+    _shader_caps._ultimate_gprofile = (int)CG_PROFILE_GLSLG;
 
     // Bug workaround for radeons.
     if (_shader_caps._active_fprofile == CG_PROFILE_ARBFP1) {