From a3f4aaf50314f6ab528afb8dbcef88cfb012e765 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Fri, 29 Jan 2021 12:38:18 +0100 Subject: call glFlush only once that seems to atleast get rid of the flicker the weird issue that clears don't work is still there --- src/frontend/qt_sdl/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/frontend/qt_sdl') 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 -- cgit v1.2.3