mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
protect against old cg version
This commit is contained in:
parent
4a8970a87d
commit
ef6e88c8be
@ -943,9 +943,11 @@ reset() {
|
|||||||
// usually supported on all cards.
|
// usually supported on all cards.
|
||||||
_shader_caps._active_vprofile = (int)CG_PROFILE_GLSLV;
|
_shader_caps._active_vprofile = (int)CG_PROFILE_GLSLV;
|
||||||
_shader_caps._active_fprofile = (int)CG_PROFILE_GLSLF;
|
_shader_caps._active_fprofile = (int)CG_PROFILE_GLSLF;
|
||||||
|
#if CG_VERSION_NUM >= 2200
|
||||||
if (cgGLIsProfileSupported(CG_PROFILE_GLSLG)) {
|
if (cgGLIsProfileSupported(CG_PROFILE_GLSLG)) {
|
||||||
_shader_caps._active_gprofile = (int)CG_PROFILE_GLSLG;
|
_shader_caps._active_gprofile = (int)CG_PROFILE_GLSLG;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_shader_caps._ultimate_vprofile = (int)CG_PROFILE_VP40;
|
_shader_caps._ultimate_vprofile = (int)CG_PROFILE_VP40;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user