diff --git a/GraphicsView/include/CGAL/Qt/init_ogl_context.h b/GraphicsView/include/CGAL/Qt/init_ogl_context.h index 57198277fe6..4ec18c6659a 100644 --- a/GraphicsView/include/CGAL/Qt/init_ogl_context.h +++ b/GraphicsView/include/CGAL/Qt/init_ogl_context.h @@ -13,6 +13,11 @@ #ifndef CGAL_QT_CONTEXT_INITIALIZATION_H #define CGAL_QT_CONTEXT_INITIALIZATION_H +#include + + +#include +#include namespace CGAL { namespace Qt @@ -37,9 +42,7 @@ inline void init_ogl_context(int major, int minor) { QSurfaceFormat::setDefaultFormat(fmt); //for windows -#if (QT_VERSION >= QT_VERSION_CHECK(5, 3, 0)) QCoreApplication::setAttribute(::Qt::AA_UseDesktopOpenGL); -#endif //We set the locale to avoid any trouble with VTK setlocale(LC_ALL, "C");