fix 3D doublebuffering

This commit is contained in:
Arisotura 2019-05-17 19:09:41 +02:00
parent 8bf4557175
commit 26f997172b
1 changed files with 2 additions and 3 deletions

View File

@ -774,8 +774,8 @@ void RenderFrame()
if (Accelerated)
{
int backbuf = FrontBuffer ? 0 : 1;
glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, FramebufferTex[backbuf], 0);
glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, FramebufferTex[FrontBuffer], 0);
FrontBuffer = FrontBuffer ? 0 : 1;
}
// clear buffers
@ -891,7 +891,6 @@ u32* GetLine(int line)
void SetupAccelFrame()
{
glBindTexture(GL_TEXTURE_2D, FramebufferTex[FrontBuffer]);
FrontBuffer = FrontBuffer ? 0 : 1;
}
}