diff --git a/avogadro/avogadro.cpp b/avogadro/avogadro.cpp index b98512a9..a057bf7f 100644 --- a/avogadro/avogadro.cpp +++ b/avogadro/avogadro.cpp @@ -269,6 +269,8 @@ int main(int argc, char* argv[]) // Set up the default format for our GL contexts. QSurfaceFormat defaultFormat = QSurfaceFormat::defaultFormat(); + defaultFormat.setVersion(4, 0); + defaultFormat.setProfile(QSurfaceFormat::CoreProfile); defaultFormat.setSamples(4); #if defined(Q_OS_MAC) || defined(Q_OS_WIN) defaultFormat.setAlphaBufferSize(8);