aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2021-01-29 12:38:18 +0100
committerRSDuck <RSDuck@users.noreply.github.com>2021-01-29 12:38:31 +0100
commita3f4aaf50314f6ab528afb8dbcef88cfb012e765 (patch)
tree2fee52671ec16b7c5156c0dad596e86118b2b7d0 /src/frontend/qt_sdl
parentb75b3f69b783ea7d8919f58d2c86dfa7c9dc6a69 (diff)
call glFlush only once
that seems to atleast get rid of the flicker the weird issue that clears don't work is still there
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/main.cpp8
1 files changed, 8 insertions, 0 deletions
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