aboutsummaryrefslogtreecommitdiff
path: root/src/GPU3D_OpenGL.cpp
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2019-06-09 20:44:35 +0200
committerArisotura <thetotalworm@gmail.com>2019-06-09 20:44:35 +0200
commit9ab331c6dd9ade3c0c2850ebb69b8306e8c71401 (patch)
treefe58bb8ed4672f5b0601a0638c8b97c3025df23c /src/GPU3D_OpenGL.cpp
parentc056dfe509f5c28fa934320007e57278a887305f (diff)
fix more stupid shit. askzjkdsf
Diffstat (limited to 'src/GPU3D_OpenGL.cpp')
-rw-r--r--src/GPU3D_OpenGL.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp
index 6aaaaec..cb62e33 100644
--- a/src/GPU3D_OpenGL.cpp
+++ b/src/GPU3D_OpenGL.cpp
@@ -987,6 +987,9 @@ void RenderFrame()
{
CurShaderID = -1;
+ if (Antialias) glBindFramebuffer(GL_FRAMEBUFFER, FramebufferID[2]);
+ else glBindFramebuffer(GL_FRAMEBUFFER, FramebufferID[FrontBuffer]);
+
ShaderConfig.uScreenSize[0] = ScreenW;
ShaderConfig.uScreenSize[1] = ScreenH;
ShaderConfig.uDispCnt = RenderDispCnt;
@@ -1080,9 +1083,6 @@ void RenderFrame()
glViewport(0, 0, ScreenW, ScreenH);
- if (Antialias) glBindFramebuffer(GL_FRAMEBUFFER, FramebufferID[2]);
- else glBindFramebuffer(GL_FRAMEBUFFER, FramebufferID[FrontBuffer]);
-
glDisable(GL_BLEND);
glColorMaski(0, GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
glColorMaski(1, GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);