* Fix rare crash when switching renderers

* Abandon QPainter in hardware renderers in favour of OpenGL
* Disable VSync in the application globally
This commit is contained in:
Cacodemon345
2021-12-25 15:34:00 +06:00
parent 9291f23461
commit 07af487acb
5 changed files with 31 additions and 3 deletions

View File

@@ -203,6 +203,7 @@ void RendererStack::switchRenderer(Renderer renderer) {
current->setFocusProxy(this);
addWidget(current.get());
this->setStyleSheet("background-color: black");
for (auto& in_use : buffers_in_use)
in_use.clear();