qt: Fix crashes and freezes when switching to/from Direct3D 9

This commit is contained in:
Cacodemon345
2022-06-24 15:41:24 +06:00
parent e04df80d97
commit 74f86753dd
3 changed files with 23 additions and 8 deletions

View File

@@ -79,6 +79,7 @@ signals:
public slots:
void blitCommon(int x, int y, int w, int h);
void blitRenderer(int x, int y, int w, int h);
void blitDummy(int x, int y, int w, int h);
void mousePoll();
private:
@@ -101,7 +102,7 @@ private:
RendererCommon *rendererWindow { nullptr };
std::unique_ptr<QWidget> current;
std::atomic<bool> directBlitting{false};
std::atomic<bool> directBlitting{false}, blitDummied{false};
};
#endif // QT_RENDERERCONTAINER_HPP