diff --git a/GPU/Common/FramebufferCommon.cpp b/GPU/Common/FramebufferCommon.cpp index 2fe79f0eac..843cf2774e 100644 --- a/GPU/Common/FramebufferCommon.cpp +++ b/GPU/Common/FramebufferCommon.cpp @@ -25,11 +25,6 @@ #include "GPU/GPUInterface.h" #include "GPU/GPUState.h" -// Aggressively delete unused FBO:s to save gpu memory. -enum { - FBO_OLD_AGE = 5, -}; - FramebufferManagerCommon::FramebufferManagerCommon() : displayFramebufPtr_(0), displayStride_(0), diff --git a/GPU/Common/FramebufferCommon.h b/GPU/Common/FramebufferCommon.h index e39ce56dfb..5dfb24f145 100644 --- a/GPU/Common/FramebufferCommon.h +++ b/GPU/Common/FramebufferCommon.h @@ -206,4 +206,9 @@ protected: std::vector vfbs_; bool hackForce04154000Download_; + + // Aggressively delete unused FBOs to save gpu memory. + enum { + FBO_OLD_AGE = 5, + }; }; diff --git a/GPU/Directx9/FramebufferDX9.cpp b/GPU/Directx9/FramebufferDX9.cpp index 9dacb1fa3f..36fbd6cda3 100644 --- a/GPU/Directx9/FramebufferDX9.cpp +++ b/GPU/Directx9/FramebufferDX9.cpp @@ -35,12 +35,6 @@ #include namespace DX9 { - - // Aggressively delete unused FBO:s to save gpu memory. - enum { - FBO_OLD_AGE = 5, - }; - inline u16 RGBA8888toRGB565(u32 px) { return ((px >> 3) & 0x001F) | ((px >> 5) & 0x07E0) | ((px >> 8) & 0xF800); } diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index f46e5d09c9..d117da74ac 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -97,11 +97,6 @@ static const char color_vs[] = " gl_Position = a_position;\n" "}\n"; -// Aggressively delete unused FBO:s to save gpu memory. -enum { - FBO_OLD_AGE = 5, -}; - inline u16 RGBA8888toRGB565(u32 px) { return ((px >> 3) & 0x001F) | ((px >> 5) & 0x07E0) | ((px >> 8) & 0xF800); }