Skip to content

Commit

Permalink
Merge pull request #537 from ghutchis/try-windows-ogl-context
Browse files Browse the repository at this point in the history
Only set the default context on Mac
  • Loading branch information
ghutchis authored Dec 7, 2024
2 parents 7efc7f4 + 3de25db commit d7a2941
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 @@ -274,12 +274,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 d7a2941

Please sign in to comment.