mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-23 06:10:03 -06:00
fix 3D doublebuffering
This commit is contained in:
@ -774,8 +774,8 @@ void RenderFrame()
|
|||||||
|
|
||||||
if (Accelerated)
|
if (Accelerated)
|
||||||
{
|
{
|
||||||
int backbuf = FrontBuffer ? 0 : 1;
|
glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, FramebufferTex[FrontBuffer], 0);
|
||||||
glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, FramebufferTex[backbuf], 0);
|
FrontBuffer = FrontBuffer ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear buffers
|
// clear buffers
|
||||||
@ -891,7 +891,6 @@ u32* GetLine(int line)
|
|||||||
void SetupAccelFrame()
|
void SetupAccelFrame()
|
||||||
{
|
{
|
||||||
glBindTexture(GL_TEXTURE_2D, FramebufferTex[FrontBuffer]);
|
glBindTexture(GL_TEXTURE_2D, FramebufferTex[FrontBuffer]);
|
||||||
FrontBuffer = FrontBuffer ? 0 : 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user