Skip to content

Commit d7a2941

Browse files
authored
Merge pull request #537 from ghutchis/try-windows-ogl-context
Only set the default context on Mac
2 parents 7efc7f4 + 3de25db commit d7a2941

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

avogadro/avogadro.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,11 @@ int main(int argc, char* argv[])
274274
}
275275

276276
// Set up the default format for our GL contexts.
277+
#if defined(Q_OS_MAC)
277278
QSurfaceFormat defaultFormat = QSurfaceFormat::defaultFormat();
278-
defaultFormat.setSamples(4);
279-
#if defined(Q_OS_MAC) || defined(Q_OS_WIN)
280279
defaultFormat.setAlphaBufferSize(8);
281-
#endif
282280
QSurfaceFormat::setDefaultFormat(defaultFormat);
281+
#endif
283282

284283
QStringList fileNames;
285284
bool disableSettings = false;

0 commit comments

Comments
 (0)