mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Beta version 2.8.5: Fix build on non-Windows.
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user