mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Beta version 2.8.5: Fix build on non-Windows.
This commit is contained in:
parent
57b147e0c8
commit
f09b91ebb5
1 changed files with 7 additions and 3 deletions
|
@ -514,6 +514,7 @@ void SetupAnimations(not_null<Ui::VerticalLayout*> container) {
|
||||||
}, container->lifetime());
|
}, container->lifetime());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
void SetupANGLE(
|
void SetupANGLE(
|
||||||
not_null<Window::SessionController*> controller,
|
not_null<Window::SessionController*> controller,
|
||||||
not_null<Ui::VerticalLayout*> container) {
|
not_null<Ui::VerticalLayout*> container) {
|
||||||
|
@ -584,6 +585,7 @@ void SetupANGLE(
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
#endif // Q_OS_WIN
|
||||||
|
|
||||||
void SetupOpenGL(
|
void SetupOpenGL(
|
||||||
not_null<Window::SessionController*> controller,
|
not_null<Window::SessionController*> controller,
|
||||||
|
@ -623,11 +625,13 @@ void SetupPerformance(
|
||||||
not_null<Window::SessionController*> controller,
|
not_null<Window::SessionController*> controller,
|
||||||
not_null<Ui::VerticalLayout*> container) {
|
not_null<Ui::VerticalLayout*> container) {
|
||||||
SetupAnimations(container);
|
SetupAnimations(container);
|
||||||
if constexpr (Platform::IsWindows()) {
|
#ifdef Q_OS_WIN
|
||||||
SetupANGLE(controller, container);
|
SetupANGLE(controller, container);
|
||||||
} else if constexpr (Platform::IsLinux()) {
|
#else // Q_OS_WIN
|
||||||
|
if constexpr (!Platform::IsMac()) {
|
||||||
SetupOpenGL(controller, container);
|
SetupOpenGL(controller, container);
|
||||||
}
|
}
|
||||||
|
#endif // Q_OS_WIN
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetupSystemIntegration(
|
void SetupSystemIntegration(
|
||||||
|
|
Loading…
Add table
Reference in a new issue