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:
XTra.KrazzY
2009-03-07 23:58:04 +00:00
parent c674e6330f
commit eab121ea31
4 changed files with 12 additions and 6 deletions

View File

@ -22,6 +22,7 @@
#include "Statistics.h"
#include "Utils.h"
#include "Profiler.h"
#include "Config.h"
#include "VertexShaderCache.h"
#include "VertexLoader.h"
#include "BPMemory.h"
@ -100,9 +101,8 @@ void VertexShaderCache::SetShader(u32 components)
INCSTAT(stats.numVertexShadersCreated);
SETSTAT(stats.numVertexShadersAlive, (int)vshaders.size());
} else {
} else if(g_Config.bShowShaderErrors)
PanicAlert("Failed to compile Vertex Shader:\n\n%s", code);
}
D3D::dev->SetFVF(NULL);
D3D::dev->SetVertexShader(shader);