From 3de25db27f4a16170ba30d3d5203a88bd340cdf8 Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Sat, 7 Dec 2024 09:43:37 -0500 Subject: [PATCH] Only set the default context on Mac I'd like to see if this crashes things on Windows Signed-off-by: Geoff Hutchison --- avogadro/avogadro.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/avogadro/avogadro.cpp b/avogadro/avogadro.cpp index 82fa3a05..211f04ee 100644 --- a/avogadro/avogadro.cpp +++ b/avogadro/avogadro.cpp @@ -268,12 +268,11 @@ int main(int argc, char* argv[]) } // Set up the default format for our GL contexts. +#if defined(Q_OS_MAC) QSurfaceFormat defaultFormat = QSurfaceFormat::defaultFormat(); - defaultFormat.setSamples(4); -#if defined(Q_OS_MAC) || defined(Q_OS_WIN) defaultFormat.setAlphaBufferSize(8); -#endif QSurfaceFormat::setDefaultFormat(defaultFormat); +#endif QStringList fileNames; bool disableSettings = false;