diff --git a/GraphicsView/include/CGAL/Qt/CreateOpenGLContext.h b/GraphicsView/include/CGAL/Qt/CreateOpenGLContext.h index d05c5904cc6..54bf9b7697a 100644 --- a/GraphicsView/include/CGAL/Qt/CreateOpenGLContext.h +++ b/GraphicsView/include/CGAL/Qt/CreateOpenGLContext.h @@ -34,19 +34,6 @@ inline QGLContext* createOpenGLContext(QObject* parent) result->create(); return result; } - -inline QGLContext* createOpenGLMSAAContext(QObject* parent) -{ - QOpenGLContext *context = new QOpenGLContext(parent); - QSurfaceFormat format; - format.setVersion(2,1); - format.setProfile(QSurfaceFormat::CompatibilityProfile); - format.setSamples(16); - context->setFormat(format); - QGLContext *result = QGLContext::fromOpenGLContext(context); - result->create(); - return result; -} } // namespace Qt } // namespace CGAL #endif diff --git a/Linear_cell_complex/demo/Linear_cell_complex/Viewer.cpp b/Linear_cell_complex/demo/Linear_cell_complex/Viewer.cpp index 052dda15a5b..77af1a08527 100644 --- a/Linear_cell_complex/demo/Linear_cell_complex/Viewer.cpp +++ b/Linear_cell_complex/demo/Linear_cell_complex/Viewer.cpp @@ -28,7 +28,7 @@ #include Viewer::Viewer(QWidget* parent) - : QGLViewer(CGAL::Qt::createOpenGLMSAAContext(parent),parent), wireframe(false), + : QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent), wireframe(false), flatShading(true), edges(true), vertices(true), m_previous_scene_empty(true), are_buffers_initialized(false) {