summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FramebufferManagerBase.cpp
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2014-12-20 17:24:35 +0100
committerJules Blok <jules.blok@gmail.com>2014-12-24 17:22:23 +0100
commitb109b31f6146acd84a4ab702e79e2b99c02b7a9c (patch)
treeb455dbf7b14635156f863cf356942c060bb721da /Source/Core/VideoCommon/FramebufferManagerBase.cpp
parenta9364cd5dbaee3d6b747e3dfecebaf789883f3c4 (diff)
FramebufferManagerBase: Only allocate one layer for Real XFB.
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/FramebufferManagerBase.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManagerBase.cpp b/Source/Core/VideoCommon/FramebufferManagerBase.cpp
index e2a09c6527..b11bb97b6b 100644
--- a/Source/Core/VideoCommon/FramebufferManagerBase.cpp
+++ b/Source/Core/VideoCommon/FramebufferManagerBase.cpp
@@ -56,7 +56,7 @@ const XFBSourceBase* const* FramebufferManagerBase::GetRealXFBSource(u32 xfbAddr
}
if (!m_realXFBSource)
- m_realXFBSource = g_framebuffer_manager->CreateXFBSource(fbWidth, fbHeight);
+ m_realXFBSource = g_framebuffer_manager->CreateXFBSource(fbWidth, fbHeight, 1);
m_realXFBSource->srcAddr = xfbAddr;
@@ -158,7 +158,7 @@ void FramebufferManagerBase::CopyToVirtualXFB(u32 xfbAddr, u32 fbWidth, u32 fbHe
if (!vxfb->xfbSource)
{
- vxfb->xfbSource = g_framebuffer_manager->CreateXFBSource(target_width, target_height);
+ vxfb->xfbSource = g_framebuffer_manager->CreateXFBSource(target_width, target_height, m_EFBLayers);
vxfb->xfbSource->texWidth = target_width;
vxfb->xfbSource->texHeight = target_height;
}