aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/GPU3D_OpenGL.cpp4
-rw-r--r--src/GPU_OpenGL.cpp2
-rw-r--r--src/frontend/qt_sdl/main.cpp8
3 files changed, 8 insertions, 6 deletions
diff --git a/src/GPU3D_OpenGL.cpp b/src/GPU3D_OpenGL.cpp
index 24c2751..164f29a 100644
--- a/src/GPU3D_OpenGL.cpp
+++ b/src/GPU3D_OpenGL.cpp
@@ -1145,8 +1145,6 @@ void RenderSceneChunk(int y, int h)
}
}
- glFlush();
-
if (RenderDispCnt & 0x00A0) // fog/edge enabled
{
glColorMaski(0, GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
@@ -1204,8 +1202,6 @@ void RenderSceneChunk(int y, int h)
glDrawArrays(GL_TRIANGLES, 0, 2*3);
}
-
- glFlush();
}
}
diff --git a/src/GPU_OpenGL.cpp b/src/GPU_OpenGL.cpp
index dd28bcd..59ced93 100644
--- a/src/GPU_OpenGL.cpp
+++ b/src/GPU_OpenGL.cpp
@@ -226,8 +226,6 @@ void RenderFrame()
glBindBuffer(GL_ARRAY_BUFFER, CompVertexBufferID);
glBindVertexArray(CompVertexArrayID);
glDrawArrays(GL_TRIANGLES, 0, 4*3);
-
- glFlush();
}
void BindOutputTexture()
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index a3b0249..240d52e 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -490,6 +490,14 @@ void EmuThread::run()
// emulate
u32 nlines = NDS::RunFrame();
+#ifdef OGLRENDERER_ENABLED
+ // this is hacky but this is the easiest way to call
+ // this function without dealling with a ton of
+ // macro mess
+ if (videoRenderer == 1)
+ epoxy_glFlush();
+#endif
+
#ifdef MELONCAP
MelonCap::Update();
#endif // MELONCAP