diff options
author | Arisotura <thetotalworm@gmail.com> | 2020-08-20 01:19:09 +0200 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2020-08-20 01:19:09 +0200 |
commit | 959e7f568da28872058c7e266db6aca1cc3f464c (patch) | |
tree | fb0f56b10c2d2e72e462a206b3d50876f4e93514 /src/GPU3D_OpenGL.cpp | |
parent | 660792d64ba2a1bab5187270a892d05ba1133dce (diff) |
GL: be more careful with framebuffer mappings. might fix issues.
Diffstat (limited to 'src/GPU3D_OpenGL.cpp')
-rw-r--r-- | src/GPU3D_OpenGL.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp index 1abc1de..f7b9b42 100644 --- a/src/GPU3D_OpenGL.cpp +++ b/src/GPU3D_OpenGL.cpp @@ -1159,8 +1159,9 @@ void RenderFrame() { CurShaderID = -1; - if (Antialias) glBindFramebuffer(GL_FRAMEBUFFER, FramebufferID[2]); - else glBindFramebuffer(GL_FRAMEBUFFER, FramebufferID[FrontBuffer]); + glBindFramebuffer(GL_READ_FRAMEBUFFER, 0); + if (Antialias) glBindFramebuffer(GL_DRAW_FRAMEBUFFER, FramebufferID[2]); + else glBindFramebuffer(GL_DRAW_FRAMEBUFFER, FramebufferID[FrontBuffer]); ShaderConfig.uScreenSize[0] = ScreenW; ShaderConfig.uScreenSize[1] = ScreenH; |