summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2009-09-03 19:24:16 +0000
committerhrydgard <hrydgard@gmail.com>2009-09-03 19:24:16 +0000
commit562a4e25acd3bd4eb7183fbb5cd04891c4535423 (patch)
tree298988fd772ec9ebf89710cb0f954997ee4fa996 /Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp
parent2091fb3ceb1f3adbb4a39513dab894c99a98be34 (diff)
Some housecleaning around the D3D plugin, start of preparations to share even more code with the GL plugin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4183 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp
index 7b5263d9a6..04fb246bb7 100644
--- a/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp
+++ b/Source/Plugins/Plugin_VideoDX9/Src/TextureCache.cpp
@@ -149,10 +149,7 @@ TextureCache::TCacheEntry *TextureCache::Load(int stage, u32 address, int width,
return &entry;
}
lastTexture[stage] = entry.texture;
-
- // D3D::dev->SetTexture(stage,iter->second.texture);
- Renderer::SetTexture( stage, entry.texture );
-
+ D3D::SetTexture( stage, entry.texture );
return &entry;
}
else
@@ -244,8 +241,7 @@ TextureCache::TCacheEntry *TextureCache::Load(int stage, u32 address, int width,
SETSTAT(stats.numTexturesAlive, (int)textures.size());
//Set the texture!
- // D3D::dev->SetTexture(stage,entry.texture);
- Renderer::SetTexture( stage, entry.texture );
+ D3D::SetTexture( stage, entry.texture );
lastTexture[stage] = entry.texture;