From 347f4a79fd24507dbb28594aa8129df97902916f Mon Sep 17 00:00:00 2001 From: RSDuck Date: Mon, 13 May 2024 17:23:05 +0200 Subject: [PATCH] Fix division by zero --- src/frontend/qt_sdl/EmuThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/qt_sdl/EmuThread.cpp b/src/frontend/qt_sdl/EmuThread.cpp index abb0e8ac..ee25dbd4 100644 --- a/src/frontend/qt_sdl/EmuThread.cpp +++ b/src/frontend/qt_sdl/EmuThread.cpp @@ -497,7 +497,7 @@ void EmuThread::run() if (NDS->GPU.GetRenderer3D().NeedsShaderCompile()) { compileShaders(); - nlines = 0; + nlines = 1; } else {