fix 3D doublebuffering

This commit is contained in:
Arisotura
2019-05-17 19:09:41 +02:00
parent 8bf4557175
commit 26f997172b

View File

@ -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;
} }
} }