mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Don't init from/to RDRAM objects when frame buffer emulation is off.
This commit is contained in:
parent
94ec380bc8
commit
107a81d079
|
@ -571,20 +571,24 @@ void FrameBufferList::attachDepthBuffer()
|
||||||
void FrameBuffer_Init()
|
void FrameBuffer_Init()
|
||||||
{
|
{
|
||||||
frameBufferList().init();
|
frameBufferList().init();
|
||||||
|
if (config.frameBufferEmulation.enable != 0) {
|
||||||
#ifndef GLES2
|
#ifndef GLES2
|
||||||
g_fbToRDRAM.Init();
|
g_fbToRDRAM.Init();
|
||||||
g_dbToRDRAM.Init();
|
g_dbToRDRAM.Init();
|
||||||
#endif
|
#endif
|
||||||
g_RDRAMtoFB.Init();
|
g_RDRAMtoFB.Init();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void FrameBuffer_Destroy()
|
void FrameBuffer_Destroy()
|
||||||
{
|
{
|
||||||
|
if (config.frameBufferEmulation.enable != 0) {
|
||||||
g_RDRAMtoFB.Destroy();
|
g_RDRAMtoFB.Destroy();
|
||||||
#ifndef GLES2
|
#ifndef GLES2
|
||||||
g_dbToRDRAM.Destroy();
|
g_dbToRDRAM.Destroy();
|
||||||
g_fbToRDRAM.Destroy();
|
g_fbToRDRAM.Destroy();
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
frameBufferList().destroy();
|
frameBufferList().destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user