Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

calling SwapBuffers from hw_lcd.cpp

bunneif0d49253e438
diff --git a/src/core/src/hw/hw_lcd.cpp b/src/core/src/hw/hw_lcd.cpp
index 7e37283462..072eede321 100644
--- a/src/core/src/hw/hw_lcd.cpp
+++ b/src/core/src/hw/hw_lcd.cpp
@@ -25,6 +25,7 @@
#include "log.h"
#include "core.h"
#include "hw_lcd.h"
+#include "video_core.h"
namespace LCD {
@@ -47,6 +48,7 @@ void Update() {
if ((current_ticks - g_last_ticks) >= kFrameTicks) {
g_last_ticks = current_ticks;
NOTICE_LOG(LCD, "Update frame");
+ VideoCore::g_renderer->SwapBuffers();
}
}