mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Made "Show shader compilation errors" work in D3D. Some games actually work behind the curtain of shader compilation errors!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2612 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
c674e6330f
commit
eab121ea31
4 changed files with 12 additions and 6 deletions
|
@ -73,6 +73,9 @@ static std::list<Message> s_listMsgs;
|
|||
|
||||
void HandleCgError(CGcontext ctx, CGerror err, void* appdata)
|
||||
{
|
||||
if(!g_Config.bShowShaderErrors)
|
||||
return;
|
||||
|
||||
PanicAlert("Cg error: %s\n", cgGetErrorString(err));
|
||||
const char* listing = cgGetLastListing(g_cgcontext);
|
||||
if (listing != NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue