d3d: Cache offscreen surfaces.

This commit is contained in:
Unknown W. Brackets committed 2014-09-13 22:28:39 -07:00
1 parent ff3c5075fa
commit 8c4c9e554e
3 files changed
+63 -13

No files matched your search

+1 -1
View File
@@ -903,7 +903,7 @@ void FramebufferManager::BlitFramebufferDepth(VirtualFramebuffer *sourceframebuf
}
FBO *FramebufferManager::GetTempFBO(u16 w, u16 h, FBOColorDepth depth) {
u32 key = ((u64)depth << 32) | (w << 16) | h;
u64 key = ((u64)depth << 32) | (w << 16) | h;
auto it = tempFBOs_.find(key);
if (it != tempFBOs_.end()) {
it->second.last_frame_used = gpuStats.numFlips;