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

Don't init from/to RDRAM objects when frame buffer emulation is off.

This commit is contained in:
Sergey Lipskiy 2015-05-04 14:46:14 +06:00
parent 94ec380bc8
commit 107a81d079

View File

@ -571,20 +571,24 @@ void FrameBufferList::attachDepthBuffer()
void FrameBuffer_Init()
{
frameBufferList().init();
if (config.frameBufferEmulation.enable != 0) {
#ifndef GLES2
g_fbToRDRAM.Init();
g_dbToRDRAM.Init();
#endif
g_RDRAMtoFB.Init();
}
}
void FrameBuffer_Destroy()
{
if (config.frameBufferEmulation.enable != 0) {
g_RDRAMtoFB.Destroy();
#ifndef GLES2
g_dbToRDRAM.Destroy();
g_fbToRDRAM.Destroy();
#endif
}
frameBufferList().destroy();
}