Add debug print out of latest Cg vertex and pixel shader profile at gsg reset time.

This commit is contained in:
aignacio_sf 2006-06-09 19:19:20 +00:00
parent f26a291ad5
commit 2b6df64ac1

View File

@ -1083,6 +1083,21 @@ reset() {
void gl_set_stencil_functions (StencilRenderStates *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
}