summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2013-01-28 18:16:03 +0100
committerdegasus <wickmarkus@web.de>2013-01-28 18:16:03 +0100
commitc5fa3e0f3dbb1fdc5f95e9e3fbfb7de62c718e9c (patch)
tree892785e1647147292ec3bbf43ef7a9d1468f6d9d /Source/Core/VideoCommon/Src/TextureCacheBase.cpp
parentfd06342a97e6bedfdedac390e89c88454983c815 (diff)
move RestoreAPIState and ResetAPIState into backends
it's a backend specific hack, so it should be here should give a small speedup in dx11 efb2tex
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/TextureCacheBase.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
index 58b2fac341..e12ef5d67f 100644
--- a/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/Src/TextureCacheBase.cpp
@@ -814,9 +814,5 @@ void TextureCache::CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat
entry->frameCount = frameCount;
- g_renderer->ResetAPIState(); // reset any game specific settings
-
entry->FromRenderTarget(dstAddr, dstFormat, srcFormat, srcRect, isIntensity, scaleByHalf, cbufid, colmat);
-
- g_renderer->RestoreAPIState();
}