mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
better fix for cg 1.x
This commit is contained in:
parent
aa7a6bb5f7
commit
1787e9ce1e
@ -762,12 +762,16 @@ reset() {
|
|||||||
_shader_caps._active_fprofile = (int)cgGLGetLatestProfile(CG_GL_FRAGMENT);
|
_shader_caps._active_fprofile = (int)cgGLGetLatestProfile(CG_GL_FRAGMENT);
|
||||||
#ifdef CG_CL_GEOMETRY
|
#ifdef CG_CL_GEOMETRY
|
||||||
_shader_caps._active_gprofile = (int)cgGLGetLatestProfile(CG_GL_GEOMETRY); // CG2 CHANGE
|
_shader_caps._active_gprofile = (int)cgGLGetLatestProfile(CG_GL_GEOMETRY); // CG2 CHANGE
|
||||||
|
#else
|
||||||
|
_shader_caps._active_gprofile = (int)0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
_shader_caps._ultimate_vprofile = (int)CG_PROFILE_VP40;
|
_shader_caps._ultimate_vprofile = (int)CG_PROFILE_VP40;
|
||||||
_shader_caps._ultimate_fprofile = (int)CG_PROFILE_FP40;
|
_shader_caps._ultimate_fprofile = (int)CG_PROFILE_FP40;
|
||||||
#ifdef CG_PROFILE_GPU_CP
|
#ifdef CG_PROFILE_GPU_CP
|
||||||
_shader_caps._ultimate_gprofile = (int)CG_PROFILE_GPU_GP; // CG2 CHANGE
|
_shader_caps._ultimate_gprofile = (int)CG_PROFILE_GPU_GP; // CG2 CHANGE
|
||||||
|
#else
|
||||||
|
_shader_caps._ultimate_gprofile = (int)0;
|
||||||
#endif
|
#endif
|
||||||
_glBindProgram = (PFNGLBINDPROGRAMARBPROC)
|
_glBindProgram = (PFNGLBINDPROGRAMARBPROC)
|
||||||
get_extension_func(GLPREFIX_QUOTED, "BindProgramARB");
|
get_extension_func(GLPREFIX_QUOTED, "BindProgramARB");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user