summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/FramebufferManagerBase.cpp
diff options
context:
space:
mode:
authorJules Blok <jules.blok@gmail.com>2014-11-06 11:41:39 +0100
committerJules Blok <jules.blok@gmail.com>2014-11-23 14:27:40 +0100
commit8210b9c915816cf8f778db1b633f2327897af005 (patch)
tree8ff03bc44112e17304e2e32568abd20e88749764 /Source/Core/VideoCommon/FramebufferManagerBase.cpp
parent02ad1a36ea0c11d5bac2c2d55e2af51b3aa6111f (diff)
TextureCache: Ensure that all render target textures have as many layers as the frame buffer.
Also fixes a case where the D3D code path did not initialize num_layers leading to undefined behaviour.
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/FramebufferManagerBase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/FramebufferManagerBase.cpp b/Source/Core/VideoCommon/FramebufferManagerBase.cpp
index ea865cd275..e2a09c6527 100644
--- a/Source/Core/VideoCommon/FramebufferManagerBase.cpp
+++ b/Source/Core/VideoCommon/FramebufferManagerBase.cpp
@@ -12,6 +12,8 @@ const XFBSourceBase* FramebufferManagerBase::m_overlappingXFBArray[MAX_VIRTUAL_X
unsigned int FramebufferManagerBase::s_last_xfb_width = 1;
unsigned int FramebufferManagerBase::s_last_xfb_height = 1;
+unsigned int FramebufferManagerBase::m_EFBLayers = 1;
+
FramebufferManagerBase::FramebufferManagerBase()
{
m_realXFBSource = nullptr;