fix an error message in d3d plugin

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2618 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2009-03-08 19:36:00 +00:00
parent c6ffcec991
commit bdb41dfe2f
3 changed files with 9 additions and 5 deletions

View File

@ -100,9 +100,11 @@ void VertexShaderCache::SetShader(u32 components)
INCSTAT(stats.numVertexShadersCreated);
SETSTAT(stats.numVertexShadersAlive, (int)vshaders.size());
} else if(g_Config.bShowShaderErrors)
}
else if (g_Config.bShowShaderErrors)
{
PanicAlert("Failed to compile Vertex Shader:\n\n%s", code);
}
D3D::dev->SetFVF(NULL);
D3D::dev->SetVertexShader(shader);
}