mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 06:18:34 +00:00
Log vertex/frag profiles used in Cg.
This commit is contained in:
parent
51f6cabc5f
commit
b1ea2dcc1e
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user