mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
Add debug print out of latest Cg vertex and pixel shader profile at gsg reset time.
This commit is contained in:
parent
f26a291ad5
commit
2b6df64ac1
@ -1083,6 +1083,21 @@ reset() {
|
|||||||
|
|
||||||
void gl_set_stencil_functions (StencilRenderStates *stencil_render_states);
|
void gl_set_stencil_functions (StencilRenderStates *stencil_render_states);
|
||||||
gl_set_stencil_functions (_stencil_render_states);
|
gl_set_stencil_functions (_stencil_render_states);
|
||||||
|
|
||||||
|
#ifdef HAVE_CGGL
|
||||||
|
CGprofile vertex_profile;
|
||||||
|
CGprofile pixel_profile;
|
||||||
|
|
||||||
|
vertex_profile = cgGLGetLatestProfile (CG_GL_VERTEX);
|
||||||
|
pixel_profile = cgGLGetLatestProfile (CG_GL_FRAGMENT);
|
||||||
|
if (GLCAT.is_debug()) {
|
||||||
|
GLCAT.debug()
|
||||||
|
// << "\nshader model = " << _shader_model
|
||||||
|
<< "\nCg vertex profile = " << cgGetProfileString(vertex_profile) << " id = " << vertex_profile
|
||||||
|
<< "\nCg pixel profile = " << cgGetProfileString(pixel_profile) << " id = " << pixel_profile
|
||||||
|
<< "\n";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user