Swap buffers in Display::flipDisplay()

This commit is contained in:
David Capello 2022-05-19 17:00:19 -03:00
parent ff5afba6ae
commit 9edbd717d8
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
// Aseprite UI Library // Aseprite UI Library
// Copyright (C) 2019-2021 Igara Studio S.A. // Copyright (C) 2019-2022 Igara Studio S.A.
// //
// This file is released under the terms of the MIT license. // This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information. // Read LICENSE.txt for more information.
@ -70,6 +70,8 @@ void Display::flipDisplay()
else else
m_nativeWindow->setVisible(true); m_nativeWindow->setVisible(true);
m_nativeWindow->swapBuffers();
m_dirtyRegion.clear(); m_dirtyRegion.clear();
} }
} }

View File

@ -309,8 +309,6 @@ void Manager::flipAllDisplays()
window->display()->flipDisplay(); window->display()->flipDisplay();
} }
} }
m_display.nativeWindow()->swapBuffers();
} }
void Manager::updateAllDisplaysWithNewScale(int scale) void Manager::updateAllDisplaysWithNewScale(int scale)