recreate mailbox to use a queue instead
This commit is contained in:
@@ -260,9 +260,14 @@ void GRenderWindow::InitRenderTarget() {
|
||||
// TODO: One of these flags might be interesting: WA_OpaquePaintEvent, WA_NoBackground,
|
||||
// WA_DontShowOnScreen, WA_DeleteOnClose
|
||||
core_context = CreateSharedContext();
|
||||
resize(Core::kScreenTopWidth, Core::kScreenTopHeight + Core::kScreenBottomHeight);
|
||||
BackupGeometry();
|
||||
}
|
||||
|
||||
void GRenderWindow::initializeGL() {
|
||||
context()->format().setSwapInterval(1);
|
||||
}
|
||||
|
||||
void GRenderWindow::CaptureScreenshot(u32 res_scale, const QString& screenshot_path) {
|
||||
if (res_scale == 0)
|
||||
res_scale = VideoCore::GetResolutionScaleFactor();
|
||||
@@ -294,7 +299,7 @@ void GRenderWindow::OnEmulationStopping() {
|
||||
}
|
||||
|
||||
void GRenderWindow::paintGL() {
|
||||
VideoCore::g_renderer->Present();
|
||||
VideoCore::g_renderer->TryPresent(100);
|
||||
update();
|
||||
}
|
||||
|
||||
|
@@ -130,6 +130,7 @@ public:
|
||||
void PollEvents() override;
|
||||
std::unique_ptr<Frontend::GraphicsContext> CreateSharedContext() const override;
|
||||
|
||||
void initializeGL() override;
|
||||
void paintGL() override;
|
||||
|
||||
void BackupGeometry();
|
||||
|
Reference in New Issue
Block a user