mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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());
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
void SetupANGLE(
|
||||
not_null<Window::SessionController*> controller,
|
||||
not_null<Ui::VerticalLayout*> container) {
|
||||
|
@ -584,6 +585,7 @@ void SetupANGLE(
|
|||
}));
|
||||
});
|
||||
}
|
||||
#endif // Q_OS_WIN
|
||||
|
||||
void SetupOpenGL(
|
||||
not_null<Window::SessionController*> controller,
|
||||
|
@ -623,11 +625,13 @@ void SetupPerformance(
|
|||
not_null<Window::SessionController*> controller,
|
||||
not_null<Ui::VerticalLayout*> container) {
|
||||
SetupAnimations(container);
|
||||
if constexpr (Platform::IsWindows()) {
|
||||
SetupANGLE(controller, container);
|
||||
} else if constexpr (Platform::IsLinux()) {
|
||||
#ifdef Q_OS_WIN
|
||||
SetupANGLE(controller, container);
|
||||
#else // Q_OS_WIN
|
||||
if constexpr (!Platform::IsMac()) {
|
||||
SetupOpenGL(controller, container);
|
||||
}
|
||||
#endif // Q_OS_WIN
|
||||
}
|
||||
|
||||
void SetupSystemIntegration(
|
||||
|
|
Loading…
Add table
Reference in a new issue