Skip to content

Commit

Permalink
Only set the default context on Mac
Browse files Browse the repository at this point in the history
I'd like to see if this crashes things on Windows

Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis committed Dec 7, 2024
1 parent 6694257 commit 3de25db
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions avogadro/avogadro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3de25db

Please sign in to comment.