We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31b8c0f commit 2b5b626Copy full SHA for 2b5b626
src/screen.cpp
@@ -760,6 +760,8 @@ void Screen::draw_teardown() {
760
761
void Screen::draw_all() {
762
if (run_mode() != RunMode::Lazy || m_redraw) {
763
+ m_redraw = false;
764
+
765
#if defined(NANOGUI_USE_METAL)
766
void *pool = autorelease_init();
767
#endif
@@ -777,7 +779,6 @@ void Screen::draw_all() {
777
779
778
780
autorelease_release(pool);
781
- m_redraw = false;
782
}
783
784
0 commit comments