Minor D3D changes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2625 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
XTra.KrazzY
2009-03-08 23:19:02 +00:00
parent d60c1b139a
commit 05d06090fd
6 changed files with 11 additions and 7 deletions

View File

@ -95,7 +95,7 @@ void PixelShaderCache::SetShader()
newentry.frameCount = frameCount;
PixelShaders[uid] = newentry;
D3D::dev->SetFVF(NULL);
Renderer::SetFVF(NULL);
D3D::dev->SetPixelShader(shader);
INCSTAT(stats.numPixelShadersCreated);
@ -134,7 +134,7 @@ void PixelShaderCache::Cleanup()
while (iter != PixelShaders.end())
{
PSCacheEntry &entry = iter->second;
if (entry.frameCount < frameCount-30)
if (entry.frameCount < frameCount-400)
{
entry.Destroy();
iter = PixelShaders.erase(iter);