Log vertex/frag profiles used in Cg.

This commit is contained in:
Themaister 2012-11-18 23:51:38 +01:00
parent 51f6cabc5f
commit b1ea2dcc1e
2 changed files with 5 additions and 1 deletions

View File

@ -313,8 +313,10 @@ void RenderChain::create_first_pass(const LinkInfo &info, PixelFormat fmt)
void RenderChain::compile_shaders(Pass &pass, const std::string &shader)
{
CGprofile fragment_profile = cgD3D9GetLatestPixelProfile();
CGprofile vertex_profile = cgD3D9GetLatestVertexProfile();
CGprofile fragment_profile = cgD3D9GetLatestPixelProfile();
RARCH_LOG("[D3D9 Cg]: Vertex profile: %s\n", cgGetProfileString(vertex_profile));
RARCH_LOG("[D3D9 Cg]: Fragment profile: %s\n", cgGetProfileString(fragment_profile));
const char **fragment_opts = cgD3D9GetOptimalOptions(fragment_profile);
const char **vertex_opts = cgD3D9GetOptimalOptions(vertex_profile);

View File

@ -1162,6 +1162,8 @@ bool gl_cg_init(const char *path)
RARCH_ERR("Invalid profile type\n");
return false;
}
RARCH_LOG("[Cg]: Vertex profile: %s\n", cgGetProfileString(cgVProf));
RARCH_LOG("[Cg]: Fragment profile: %s\n", cgGetProfileString(cgFProf));
cgGLSetOptimalOptions(cgFProf);
cgGLSetOptimalOptions(cgVProf);
cgGLEnableProfile(cgFProf);