1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Fix *BufferToRDRAM destroy().

Fixed run 4mb games after 8mb ones.
This commit is contained in:
Sergey Lipskiy 2014-09-25 22:57:50 +07:00
parent 560f1d8118
commit 4499a6f966

View File

@ -70,9 +70,9 @@ public:
private: private:
GLuint m_FBO; GLuint m_FBO;
CachedTexture * m_pTexture; CachedTexture * m_pTexture;
GLuint m_aPBO[2];
u32 m_aAddress[2]; u32 m_aAddress[2];
u32 m_curIndex; u32 m_curIndex;
GLuint m_aPBO[2];
}; };
#endif // GLES2 #endif // GLES2
@ -531,6 +531,8 @@ void FrameBufferToRDRAM::Destroy() {
} }
glDeleteBuffers(2, m_aPBO); glDeleteBuffers(2, m_aPBO);
m_aPBO[0] = m_aPBO[1] = 0; m_aPBO[0] = m_aPBO[1] = 0;
m_curIndex = 0;
m_aAddress[0] = m_aAddress[1] = 0;
} }
void FrameBufferToRDRAM::CopyToRDRAM( u32 address, bool bSync ) { void FrameBufferToRDRAM::CopyToRDRAM( u32 address, bool bSync ) {
@ -667,6 +669,8 @@ void DepthBufferToRDRAM::Destroy() {
} }
glDeleteBuffers(2, m_aPBO); glDeleteBuffers(2, m_aPBO);
m_aPBO[0] = m_aPBO[1] = 0; m_aPBO[0] = m_aPBO[1] = 0;
m_curIndex = 0;
m_aAddress[0] = m_aAddress[1] = 0;
} }
void DepthBufferToRDRAM::CopyToRDRAM( u32 address) { void DepthBufferToRDRAM::CopyToRDRAM( u32 address) {